web/views/management.py
changeset 5232 78c1a531f7b3
parent 4714 fccda6dd91bf
child 5234 e2476d78b060
--- a/web/views/management.py	Tue Apr 13 13:21:10 2010 +0200
+++ b/web/views/management.py	Wed Mar 24 15:31:37 2010 -0700
@@ -17,6 +17,8 @@
 from cubicweb.web import formwidgets as wdgs
 from cubicweb.web.formfields import guess_field
 
+from yams.buildobjs import EntityType
+
 SUBMIT_MSGID = _('Submit bug report')
 MAIL_SUBMIT_MSGID = _('Submit bug report by mail')
 
@@ -52,19 +54,6 @@
             w(u'</tr>\n')
         w(u'</table>')
 
-    def has_schema_modified_permissions(self, eschema, access_types):
-        """ return True if eschema's actual permissions are diffrents
-        from the default ones
-        """
-        for access_type in access_types:
-            if eschema.get_rqlexprs(access_type):
-                return True
-            if eschema.get_groups(access_type) != \
-                    frozenset(eschema.get_default_groups()[access_type]):
-                return True
-        return False
-
-
 class SecurityManagementView(EntityView, SecurityViewMixIn):
     """display security information for a given entity"""
     __regid__ = 'security'