# HG changeset patch # User Sylvain Thénault # Date 1266259077 -3600 # Node ID 2172c8c29fe64d32b51babd9403bbf6a5a60a4fa # Parent cc3ec1423ead687ca1a0b97e675ebea1afbdc5bd use constant diff -r cc3ec1423ead -r 2172c8c29fe6 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):