author | Sylvain Thénault <sylvain.thenault@logilab.fr> |
Fri, 31 Jul 2009 23:38:27 +0200 | |
changeset 2601 | 5196d213f4e3 |
parent 1977 | 606923dff11b |
child 2634 | 273eec072cf8 |
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 |
class ToTo(EntityType): |
9 |
permissions = { |
|
10 |
'read': ('managers',), |
|
11 |
'add': ('managers',), |
|
12 |
'update': ('managers',), |
|
13 |
'delete': ('managers',), |
|
14 |
} |
|
15 |
toto = SubjectRelation('TuTu') |
|
1802
d628defebc17
delete-trailing-whitespace + some copyright update
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
0
diff
changeset
|
16 |
|
0 | 17 |
class TuTu(EntityType): |
18 |
permissions = { |
|
19 |
'read': ('managers',), |
|
20 |
'add': ('managers',), |
|
21 |
'update': ('managers',), |
|
22 |
'delete': ('managers',), |
|
23 |
} |
|
24 |
||
25 |
class toto(RelationType): |
|
26 |
permissions = { |
|
27 |
'read': ('managers', ), |
|
28 |
'add': ('managers', ERQLExpression('S bla Y'),), |
|
29 |
'delete': ('managers',), |
|
30 |
} |