src/pyams_skin/viewlet/menu/__init__.py
changeset 111 6afd6d3ad000
parent 90 2c75cd01d282
child 154 9802f640c418
--- a/src/pyams_skin/viewlet/menu/__init__.py	Mon Jan 18 18:37:46 2016 +0100
+++ b/src/pyams_skin/viewlet/menu/__init__.py	Mon Jan 18 18:38:12 2016 +0100
@@ -15,7 +15,8 @@
 # import standard library
 
 # import interfaces
-from pyams_skin.interfaces.viewlet import IMainMenusViewletManager, IMenu, IMenuItem, IMenuHeader
+from pyams_skin.interfaces.viewlet import IMainMenusViewletManager, IUserMenusViewletManager, IMenu, IMenuItem, \
+    IMenuHeader
 from pyams_skin.layer import IPyAMSLayer
 
 # import packages
@@ -37,6 +38,16 @@
 
 
 #
+# User menus viewlet manager
+#
+
+@viewletmanager_config(name='pyams.user_menus', layer=IPyAMSLayer, provides=IUserMenusViewletManager)
+@template_config(template='user-menus.pt', layer=IPyAMSLayer)
+class UserMenusViewletManager(TemplateBasedViewletManager, WeightOrderedViewletManager):
+    """User menus viewlet manager"""
+
+
+#
 # Menus group
 #