src/pyams_alchemy/interfaces/__init__.py
changeset 78 282bdc54b124
parent 77 2be615fc6da4
equal deleted inserted replaced
77:2be615fc6da4 78:282bdc54b124
    10 # FOR A PARTICULAR PURPOSE.
    10 # FOR A PARTICULAR PURPOSE.
    11 #
    11 #
    12 
    12 
    13 __docformat__ = 'restructuredtext'
    13 __docformat__ = 'restructuredtext'
    14 
    14 
    15 
       
    16 # import standard library
       
    17 
       
    18 # import interfaces
       
    19 from zope.interface import Interface
    15 from zope.interface import Interface
    20 
    16 from zope.schema import Bool, Choice, Int, TextLine
    21 # import packages
       
    22 from zope.schema import TextLine, Bool, Int, Choice
       
    23 
    17 
    24 from pyams_alchemy import _
    18 from pyams_alchemy import _
    25 
    19 
    26 
    20 
    27 REQUEST_SESSION_KEY = 'pyams_alchemy.session'
    21 REQUEST_SESSION_KEY = 'pyams_alchemy.session'
    28 
    22 
    29 
    23 
    30 class IAlchemyEngineUtility(Interface):
    24 class IAlchemyEngineUtility(Interface):
    31     """SQLALchemy engine definition interface"""
    25     """SQLAlchemy engine definition interface"""
    32 
    26 
    33     name = TextLine(title=_("Engine name"),
    27     name = TextLine(title=_("Engine name"),
    34                     description=_("Keep empty if this engine is the default engine..."),
    28                     description=_("Keep empty if this engine is the default engine..."),
    35                     required=False,
    29                     required=False,
    36                     default='')
    30                     default='')