Changed admin view context
authorThierry Florac <thierry.florac@onf.fr>
Fri, 20 Mar 2015 17:19:07 +0100
changeset 5 cbd687476ed5
parent 4 0ff044965637
child 6 fa8fd073b191
Changed admin view context
src/pyams_zmi/admin.py
--- a/src/pyams_zmi/admin.py	Wed Mar 04 00:07:41 2015 +0100
+++ b/src/pyams_zmi/admin.py	Fri Mar 20 17:19:07 2015 +0100
@@ -17,16 +17,16 @@
 
 # import interfaces
 from pyams_skin.layer import IPyAMSLayer
-from pyams_utils.interfaces.site import ISiteRoot
 from pyams_zmi.layer import IAdminLayer
 
 # import packages
 from pyams_pagelet.pagelet import pagelet_config
 from pyams_template.template import template_config
 from pyams_zmi.view import AdminView
+from zope.interface import Interface
 
 
-@pagelet_config(name='admin.html', layer=IPyAMSLayer, context=ISiteRoot, permission='system.view')
+@pagelet_config(name='admin.html', layer=IPyAMSLayer, context=Interface, permission='system.view')
 @template_config(template='templates/admin.pt', layer=IAdminLayer)
 class MainAdminPage(AdminView):
     """Main administration page"""