schemas/__init__.py
author Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
Thu, 12 Nov 2009 18:27:59 +0100
branchstable
changeset 3834 e3e64352063d
parent 2502 324ec2056d56
child 4243 2621de25d15a
permissions -rw-r--r--
[javascript] fid form / onfailure behaviour If onfailure is specified, it should be done _before_ any default / standard CW action is done. The callback signature should be the same as the onsuccess one. If the onfailure callback returns true, the default actions will still take place afterwards, otherwise (i.e. return false), the processing stops directly after the callback.
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
    }