Updated menu position
authorThierry Florac <tflorac@ulthar.net>
Wed, 07 Feb 2018 14:18:57 +0100
changeset 44 139c875eabaf
parent 43 935619287771
child 45 3e263b419a46
Updated menu position
src/pyams_zmi/skin.py
--- a/src/pyams_zmi/skin.py	Sat Jan 27 00:41:08 2018 +0100
+++ b/src/pyams_zmi/skin.py	Wed Feb 07 14:18:57 2018 +0100
@@ -47,8 +47,14 @@
 # User skinnable properties configuration
 #
 
+@viewlet_config(name='user-skin-properties.divider', context=IUserSkinnable, layer=IAdminLayer, manager=IPropertiesMenu,
+                permission=MANAGE_SKIN_PERMISSION, weight=199)
+class UserSkinnablePropertiesMenuDivider(MenuDivider):
+    """User skin properties menu divider"""
+
+
 @viewlet_config(name='user-skin-properties.menu', context=IUserSkinnable, layer=IAdminLayer, manager=IPropertiesMenu,
-                permission=MANAGE_SKIN_PERMISSION, weight=5)
+                permission=MANAGE_SKIN_PERMISSION, weight=200)
 class UserSkinnablePropertiesMenuItem(MenuItem):
     """User skin properties menu"""
 
@@ -58,12 +64,6 @@
     modal_target = True
 
 
-@viewlet_config(name='user-skin-properties.divider', context=IUserSkinnable, layer=IAdminLayer, manager=IPropertiesMenu,
-                permission=MANAGE_SKIN_PERMISSION, weight=6)
-class UserSkinnablePropertiesMenuDivider(MenuDivider):
-    """User skin properties menu divider"""
-
-
 @pagelet_config(name='user-skin-properties.html', context=IUserSkinnable, layer=IPyAMSLayer,
                 permission=MANAGE_SKIN_PERMISSION)
 class UserSkinnablePropertiesEditForm(AdminDialogEditForm):