src/ztfy/utils/interfaces.py
branchZTK-1.1
changeset 179 612a350cc660
parent 177 b9ad5a9614c4
child 233 6c087119379d
equal deleted inserted replaced
177:b9ad5a9614c4 179:612a350cc660
    21 from zope.component.interfaces import IObjectEvent
    21 from zope.component.interfaces import IObjectEvent
    22 
    22 
    23 # import local interfaces
    23 # import local interfaces
    24 
    24 
    25 # import Zope3 packages
    25 # import Zope3 packages
    26 from zope.interface import Interface
    26 from zope.interface import Interface, Attribute
    27 from zope.schema import TextLine, Int, Password, Bool
    27 from zope.schema import TextLine, Int, Password, Bool
    28 
    28 
    29 # import local packages
    29 # import local packages
    30 
    30 
    31 from ztfy.utils import _
    31 from ztfy.utils import _
   187                            description=_("""Flag whether the blob_dir is a server-shared filesystem """
   187                            description=_("""Flag whether the blob_dir is a server-shared filesystem """
   188                                          """that should be used instead of transferring blob data over zrpc."""),
   188                                          """that should be used instead of transferring blob data over zrpc."""),
   189                            required=True,
   189                            required=True,
   190                            default=False)
   190                            default=False)
   191 
   191 
       
   192     connection = Attribute(_("Opened ZEO connection"))
       
   193 
   192     def getSettings(self):
   194     def getSettings(self):
   193         """Get ZEO connection setting as a JSON dict"""
   195         """Get ZEO connection setting as a JSON dict"""
   194 
   196 
   195     def update(self, settings):
   197     def update(self, settings):
   196         """Update internal fields with given settings dict"""
   198         """Update internal fields with given settings dict"""