schemas/__init__.py
author Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
Wed, 23 Sep 2009 11:10:38 +0200
changeset 3407 da9cc8cc7c5f
parent 2502 324ec2056d56
child 4243 2621de25d15a
permissions -rw-r--r--
[api] use cw_property_defs instead of deprecated property_defs
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2502
324ec2056d56 document
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 2501
diff changeset
     1
# permissions for "meta" entity type (readable by anyone, can only be
324ec2056d56 document
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 2501
diff changeset
     2
# added/deleted by managers)
2141
0072247db207 schema should now be importable
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff changeset
     3
META_ETYPE_PERMS = {
0072247db207 schema should now be importable
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff changeset
     4
    'read':   ('managers', 'users', 'guests',),
0072247db207 schema should now be importable
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff changeset
     5
    'add':    ('managers',),
0072247db207 schema should now be importable
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff changeset
     6
    'delete': ('managers',),
0072247db207 schema should now be importable
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff changeset
     7
    'update': ('managers', 'owners',),
0072247db207 schema should now be importable
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff changeset
     8
    }
0072247db207 schema should now be importable
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff changeset
     9
2502
324ec2056d56 document
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 2501
diff changeset
    10
# permissions for "meta" relation type (readable by anyone, can only be
324ec2056d56 document
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 2501
diff changeset
    11
# added/deleted by managers)
2141
0072247db207 schema should now be importable
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff changeset
    12
META_RTYPE_PERMS = {
0072247db207 schema should now be importable
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff changeset
    13
    'read':   ('managers', 'users', 'guests',),
0072247db207 schema should now be importable
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff changeset
    14
    'add':    ('managers',),
0072247db207 schema should now be importable
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff changeset
    15
    'delete': ('managers',),
0072247db207 schema should now be importable
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff changeset
    16
    }
2501
fa86d99c2c3a test and fix wf history security
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 2141
diff changeset
    17
fa86d99c2c3a test and fix wf history security
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 2141
diff changeset
    18
# permissions for relation type that should only set by hooks using unsafe
fa86d99c2c3a test and fix wf history security
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 2141
diff changeset
    19
# execute, readable by anyone
fa86d99c2c3a test and fix wf history security
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 2141
diff changeset
    20
HOOKS_RTYPE_PERMS = {
fa86d99c2c3a test and fix wf history security
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 2141
diff changeset
    21
    'read':   ('managers', 'users', 'guests',),
fa86d99c2c3a test and fix wf history security
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 2141
diff changeset
    22
    'add':    (),
fa86d99c2c3a test and fix wf history security
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 2141
diff changeset
    23
    'delete': (),
fa86d99c2c3a test and fix wf history security
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 2141
diff changeset
    24
    }