schemas/__init__.py
author Sylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 13 Nov 2009 09:16:28 +0100
branchstable
changeset 3837 0cb409871d42
parent 2502 324ec2056d56
child 4243 2621de25d15a
permissions -rw-r--r--
merge
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
    }