Updated menus order
authorThierry Florac <thierry.florac@onf.fr>
Tue, 04 Dec 2018 16:12:46 +0100
changeset 1144 725409a83baf
parent 1143 062f4bf031e9
child 1145 f62181d79748
Updated menus order
src/pyams_content/shared/site/zmi/__init__.py
src/pyams_content/shared/site/zmi/folder.py
--- a/src/pyams_content/shared/site/zmi/__init__.py	Fri Nov 30 14:45:21 2018 +0100
+++ b/src/pyams_content/shared/site/zmi/__init__.py	Tue Dec 04 16:12:46 2018 +0100
@@ -44,7 +44,7 @@
 
 
 @viewlet_config(name='add-topic.menu', context=ISiteContainer, layer=IAdminLayer, view=Interface,
-                manager=IToolbarAddingMenu, permission=CREATE_CONTENT_PERMISSION, weight=10)
+                manager=IToolbarAddingMenu, permission=CREATE_CONTENT_PERMISSION, weight=20)
 class TopicAddMenu(ToolbarMenuItem):
     """Topic add menu"""
 
--- a/src/pyams_content/shared/site/zmi/folder.py	Fri Nov 30 14:45:21 2018 +0100
+++ b/src/pyams_content/shared/site/zmi/folder.py	Tue Dec 04 16:12:46 2018 +0100
@@ -50,7 +50,7 @@
 
 
 @viewlet_config(name='add-site-folder.menu', context=ISiteContainer, layer=IAdminLayer, view=Interface,
-                manager=IToolbarAddingMenu, permission=MANAGE_SITE_PERMISSION, weight=20)
+                manager=IToolbarAddingMenu, permission=MANAGE_SITE_PERMISSION, weight=10)
 class SiteFolderAddMenu(ToolbarMenuItem):
     """Site folder add menu"""