use constant
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 15 Feb 2010 19:37:57 +0100
changeset 4590 2172c8c29fe6
parent 4589 cc3ec1423ead
child 4591 47acae3cb778
use constant
schemas/base.py
--- a/schemas/base.py	Mon Feb 15 19:37:50 2010 +0100
+++ b/schemas/base.py	Mon Feb 15 19:37:57 2010 +0100
@@ -170,19 +170,11 @@
     """link a permission to the entity. This permission should be used in the
     security definition of the entity's type to be useful.
     """
-    __permissions__ = {
-        'read':   ('managers', 'users', 'guests'),
-        'add':    ('managers',),
-        'delete': ('managers',),
-        }
+    __permissions__ = META_RTYPE_PERMS
 
 class require_group(RelationType):
     """used to grant a permission to a group"""
-    __permissions__ = {
-        'read':   ('managers', 'users', 'guests'),
-        'add':    ('managers',),
-        'delete': ('managers',),
-        }
+    __permissions__ = META_RTYPE_PERMS
 
 
 class ExternalUri(EntityType):