equal
deleted
inserted
replaced
234 ajax_handler = 'add-group.json' |
234 ajax_handler = 'add-group.json' |
235 edit_permission = MANAGE_SYSTEM_PERMISSION |
235 edit_permission = MANAGE_SYSTEM_PERMISSION |
236 |
236 |
237 def updateWidgets(self, prefix=None): |
237 def updateWidgets(self, prefix=None): |
238 super(LocalGroupAddForm, self).updateWidgets() |
238 super(LocalGroupAddForm, self).updateWidgets() |
239 self.widgets['description'].label_css_class = 'textarea' |
239 if 'description' in self.widgets: |
|
240 self.widgets['description'].widget_css_class = 'textarea' |
240 |
241 |
241 def create(self, data): |
242 def create(self, data): |
242 return Group() |
243 return Group() |
243 |
244 |
244 def update_content(self, group, data): |
245 def update_content(self, group, data): |
290 ajax_handler = 'properties.json' |
291 ajax_handler = 'properties.json' |
291 edit_permission = MANAGE_SYSTEM_PERMISSION |
292 edit_permission = MANAGE_SYSTEM_PERMISSION |
292 |
293 |
293 def updateWidgets(self, prefix=None): |
294 def updateWidgets(self, prefix=None): |
294 super(LocalGroupEditForm, self).updateWidgets() |
295 super(LocalGroupEditForm, self).updateWidgets() |
295 self.widgets['description'].label_css_class = 'textarea' |
296 if 'description' in self.widgets: |
|
297 self.widgets['description'].widget_css_class = 'textarea' |
296 |
298 |
297 |
299 |
298 @view_config(name='properties.json', context=ILocalGroup, request_type=IPyAMSLayer, |
300 @view_config(name='properties.json', context=ILocalGroup, request_type=IPyAMSLayer, |
299 permission=MANAGE_SYSTEM_PERMISSION, renderer='json', xhr=True) |
301 permission=MANAGE_SYSTEM_PERMISSION, renderer='json', xhr=True) |
300 class LocalGroupAJAXEditForm(AJAXEditForm, LocalGroupEditForm): |
302 class LocalGroupAJAXEditForm(AJAXEditForm, LocalGroupEditForm): |