web/views/startup.py
branchtls-sprint
changeset 1542 2965fcfaeca1
parent 1522 47b2ffbee760
child 1544 d8fb60c56d69
--- a/web/views/startup.py	Tue Apr 28 19:14:37 2009 +0200
+++ b/web/views/startup.py	Wed Apr 29 10:11:53 2009 +0200
@@ -10,9 +10,9 @@
 from logilab.common.textutils import unormalize
 from logilab.mtconverter import html_escape
 
-from cubicweb.common.uilib import ureport_as_html, unormalize, ajax_replace_url
-from cubicweb.common.view import StartupView
-from cubicweb.common.selectors import match_user_group
+from cubicweb.common.uilib import ureport_as_html, ajax_replace_url
+from cubicweb.view import StartupView
+from cubicweb.selectors import match_user_groups
 from cubicweb.web.httpcache import EtagHTTPCacheManager
 from cubicweb.web.views.management import SecurityViewMixIn
 from copy import deepcopy
@@ -192,8 +192,7 @@
     
 class ManagerSchemaPermissionsView(StartupView, SecurityViewMixIn):
     id = 'schema_security'
-    require_groups = ('managers',)
-    __selectors__ = StartupView.__selectors__ + (match_user_group,)
+    __selectors__ = StartupView.__selectors__ + (match_user_groups('managers'),)
 
     def call(self, display_relations=True,
              skiprels=('is', 'is_instance_of', 'identity', 'owned_by', 'created_by')):