Changed layer interface for inner view viewlet
authorThierry Florac <thierry.florac@onf.fr>
Tue, 15 Nov 2016 14:14:54 +0100
changeset 74 794b6bee1440
parent 73 8777986af300
child 75 aeb3456af183
Changed layer interface for inner view viewlet
src/pyams_security/zmi/plugin/userfolder.py
--- a/src/pyams_security/zmi/plugin/userfolder.py	Tue Nov 15 10:35:49 2016 +0100
+++ b/src/pyams_security/zmi/plugin/userfolder.py	Tue Nov 15 14:14:54 2016 +0100
@@ -148,7 +148,7 @@
         super(UsersFolderSearchView, self).__init__(context, request)
 
 
-@adapter_config(context=(IUsersFolderPlugin, IAdminLayer, UsersFolderSearchView), provides=IPageHeader)
+@adapter_config(context=(IUsersFolderPlugin, IPyAMSLayer, UsersFolderSearchView), provides=IPageHeader)
 class UsersFolderSearchViewHeaderAdapter(DefaultPageHeaderAdapter):
     """Users folder search view header adapter"""
 
@@ -241,7 +241,7 @@
 #
 
 @viewlet_config(name='users-folder.toolbar.adding', context=IUsersFolderPlugin,
-                view=UsersFolderSearchView.search_form_factory, layer=IAdminLayer,
+                view=UsersFolderSearchView.search_form_factory, layer=IPyAMSLayer,
                 manager=IWidgetTitleViewletManager, permission=MANAGE_SYSTEM_PERMISSION)
 class LocalUserAddAction(ToolbarAction):
     """Users folder adding action"""