src/pyams_utils/zmi/zeo.py
changeset 26 5e36949fce6e
parent 11 7693c14c352e
child 29 4bbddbc10590
equal deleted inserted replaced
25:60cdded859d4 26:5e36949fce6e
    59     title = _("Utilities")
    59     title = _("Utilities")
    60     legend = _("Add ZEO connection")
    60     legend = _("Add ZEO connection")
    61     icon_css_class = 'fa fa-fw fa-database'
    61     icon_css_class = 'fa fa-fw fa-database'
    62 
    62 
    63     fields = field.Fields(IZEOConnection)
    63     fields = field.Fields(IZEOConnection)
       
    64     autocomplete = 'off'
    64     ajax_handler = 'add-zeo-connection.json'
    65     ajax_handler = 'add-zeo-connection.json'
    65     edit_permission = None
    66     edit_permission = None
    66 
    67 
    67     def create(self, data):
    68     def create(self, data):
    68         return ZEOConnectionUtility()
    69         return ZEOConnectionUtility()
   104 
   105 
   105     legend = _("Update ZEO connection properties")
   106     legend = _("Update ZEO connection properties")
   106     icon_css_class = 'fa fa-fw fa-database'
   107     icon_css_class = 'fa fa-fw fa-database'
   107 
   108 
   108     fields = field.Fields(IZEOConnection)
   109     fields = field.Fields(IZEOConnection)
       
   110     autocomplete = 'off'
   109     ajax_handler = 'properties.json'
   111     ajax_handler = 'properties.json'
   110     edit_permission = 'system.manage'
   112     edit_permission = 'system.manage'
   111 
   113 
   112     def updateWidgets(self, prefix=None):
   114     def updateWidgets(self, prefix=None):
   113         super(ZEOConnectionPropertiesEditForm, self).updateWidgets(prefix)
   115         super(ZEOConnectionPropertiesEditForm, self).updateWidgets(prefix)