--- 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: