User generic PyAMS add menu
authorThierry Florac <thierry.florac@onf.fr>
Tue, 03 Mar 2015 16:54:31 +0100
changeset 3 5ac09cfb60cb
parent 2 68423cd701bb
child 4 6741c7cd2366
User generic PyAMS add menu
src/pyams_ldap/zmi/plugin.py
--- a/src/pyams_ldap/zmi/plugin.py	Mon Mar 02 09:51:55 2015 +0100
+++ b/src/pyams_ldap/zmi/plugin.py	Tue Mar 03 16:54:31 2015 +0100
@@ -21,8 +21,8 @@
 from pyams_form.interfaces.form import IInnerTabForm, IWidgetsSuffixViewletsManager
 from pyams_ldap.interfaces import ILDAPPlugin
 from pyams_security.interfaces import ISecurityManager, IPlugin
-from pyams_security.zmi.interfaces import ISecurityManagerToolbarAddingMenu
 from pyams_skin.interfaces import IPageHeader
+from pyams_skin.interfaces.viewlet import IToolbarAddingMenu
 from pyams_skin.layer import IPyAMSLayer
 from pyams_zmi.interfaces import IAdminView
 from pyams_zmi.layer import IAdminLayer
@@ -60,7 +60,7 @@
 #
 
 @viewlet_config(name='add-ldap-folder.menu', context=ISite, layer=IAdminLayer,
-                view=SecurityManagerPluginsTable, manager=ISecurityManagerToolbarAddingMenu,
+                view=SecurityManagerPluginsTable, manager=IToolbarAddingMenu,
                 permission='system.manage', weight=60)
 class LDAPPluginAddMenu(ToolbarMenuItem):
     """LDAP users folder add menu"""