Updated docstring
authorThierry Florac <thierry.florac@onf.fr>
Wed, 15 Jun 2016 12:43:34 +0200
changeset 17 009454f127d7
parent 16 9259ed2c9f59
child 18 6d1fb0659e7a
Updated docstring
src/pyams_zmi/site.py
--- a/src/pyams_zmi/site.py	Tue Jan 19 10:35:40 2016 +0100
+++ b/src/pyams_zmi/site.py	Wed Jun 15 12:43:34 2016 +0200
@@ -55,9 +55,9 @@
 # Configuration properties
 #
 
-@viewlet_config(name='properties.menu', layer=IAdminLayer, context=ISiteRoot, manager=ISiteManagementMenu,
+@viewlet_config(name='properties.menu', context=ISiteRoot, layer=IAdminLayer, manager=ISiteManagementMenu,
                 permission=VIEW_SYSTEM_PERMISSION, weight=1)
-@viewletmanager_config(name='properties.menu', layer=IAdminLayer, context=ISiteRoot, provides=IPropertiesMenu)
+@viewletmanager_config(name='properties.menu', context=ISiteRoot, layer=IAdminLayer, provides=IPropertiesMenu)
 @implementer(IPropertiesMenu)
 class PropertiesMenuItem(MenuItem):
     """Properties menu"""
@@ -121,7 +121,7 @@
 # Back-office configuration properties
 #
 
-@viewlet_config(name='back-office-properties.menu', layer=IAdminLayer, context=ISiteRoot, manager=IPropertiesMenu,
+@viewlet_config(name='back-office-properties.menu', context=ISiteRoot, layer=IAdminLayer, manager=IPropertiesMenu,
                 permission=MANAGE_SYSTEM_PERMISSION, weight=1)
 class BackOfficePropertiesMenuItem(MenuItem):
     """Back-office properties menu"""
@@ -132,7 +132,7 @@
     modal_target = True
 
 
-@viewlet_config(name='back-office-properties.divider', layer=IAdminLayer, context=ISiteRoot, manager=IPropertiesMenu,
+@viewlet_config(name='back-office-properties.divider', context=ISiteRoot, layer=IAdminLayer, manager=IPropertiesMenu,
                 permission=MANAGE_SYSTEM_PERMISSION, weight=2)
 class BackOfficePropertiesMenuDivider(MenuDivider):
     """Back-office properties menu divider"""
@@ -174,7 +174,7 @@
 @view_config(name='back-office-properties.json', context=ISiteRoot, request_type=IPyAMSLayer,
              permission=MANAGE_SYSTEM_PERMISSION, renderer='json', xhr=True)
 class BackOfficePropertiesAJAXEditForm(AJAXEditForm, BackOfficePropertiesEditForm):
-    """Back-office properties edit form, AJAX renderer"""
+    """Back-office properties edit form, JSON renderer"""
 
     def get_ajax_output(self, changes):
         if changes: