author | Adrien Di Mascio <Adrien.DiMascio@logilab.fr> |
Wed, 15 Jul 2009 09:45:13 +0200 | |
changeset 2374 | ea1a44e4ad62 |
parent 1977 | 606923dff11b |
permissions | -rw-r--r-- |
1977
606923dff11b
big bunch of copyright / docstring update
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
1802
diff
changeset
|
1 |
""" |
606923dff11b
big bunch of copyright / docstring update
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
1802
diff
changeset
|
2 |
|
606923dff11b
big bunch of copyright / docstring update
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
1802
diff
changeset
|
3 |
:organization: Logilab |
606923dff11b
big bunch of copyright / docstring update
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
1802
diff
changeset
|
4 |
:copyright: 2001-2009 LOGILAB S.A. (Paris, FRANCE), license is LGPL v2. |
606923dff11b
big bunch of copyright / docstring update
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
1802
diff
changeset
|
5 |
:contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr |
606923dff11b
big bunch of copyright / docstring update
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
1802
diff
changeset
|
6 |
:license: GNU Lesser General Public License, v2.1 - http://www.gnu.org/licenses |
606923dff11b
big bunch of copyright / docstring update
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
1802
diff
changeset
|
7 |
""" |
0 | 8 |
|
9 |
class para(AttributeRelationType): |
|
10 |
permissions = { |
|
11 |
'read': ('managers', 'users', 'guests'), |
|
12 |
'add': ('managers', ERQLExpression('X in_state S, S name "todo"')), |
|
13 |
'delete': ('managers', ERQLExpression('X in_state S, S name "todo"')), |
|
14 |
} |
|
15 |
||
16 |
class in_state(RelationDefinition): |
|
17 |
subject = 'Note' |
|
18 |
object = 'State' |
|
19 |
cardinality = '1*' |
|
20 |
constraints=[RQLConstraint('S is ET, O state_of ET')] |
|
1802
d628defebc17
delete-trailing-whitespace + some copyright update
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
0
diff
changeset
|
21 |
|
0 | 22 |
class wf_info_for(RelationDefinition): |
23 |
subject = 'TrInfo' |
|
24 |
object = 'Note' |
|
25 |
cardinality = '1*' |