author | Sylvain Thenault <sylvain.thenault@logilab.fr> |
Tue, 06 Jan 2009 18:21:03 +0100 | |
changeset 332 | 86b8d58664eb |
parent 0 | b97547f5f1fa |
child 341 | 0a426be2f3a2 |
permissions | -rw-r--r-- |
0 | 1 |
|
2 |
||
3 |
class test(AttributeRelationType): |
|
4 |
permissions = {'read': ('managers', 'users', 'guests'), |
|
5 |
'delete': ('managers',), |
|
6 |
'add': ('managers',)} |
|
332
86b8d58664eb
backport msplanner test from cubicweb-multisources
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
0
diff
changeset
|
7 |
|
86b8d58664eb
backport msplanner test from cubicweb-multisources
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
0
diff
changeset
|
8 |
class fiche(RelationType): |
86b8d58664eb
backport msplanner test from cubicweb-multisources
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
0
diff
changeset
|
9 |
inlined = True |
86b8d58664eb
backport msplanner test from cubicweb-multisources
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
0
diff
changeset
|
10 |
subject = 'Personne' |
86b8d58664eb
backport msplanner test from cubicweb-multisources
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
0
diff
changeset
|
11 |
object = 'Card' |
86b8d58664eb
backport msplanner test from cubicweb-multisources
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
0
diff
changeset
|
12 |
cardinality = '??' |
86b8d58664eb
backport msplanner test from cubicweb-multisources
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
0
diff
changeset
|
13 |
|
86b8d58664eb
backport msplanner test from cubicweb-multisources
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
0
diff
changeset
|
14 |
class multisource_rel(RelationDefinition): |
86b8d58664eb
backport msplanner test from cubicweb-multisources
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
0
diff
changeset
|
15 |
subject = ('Card', 'Note') |
86b8d58664eb
backport msplanner test from cubicweb-multisources
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
0
diff
changeset
|
16 |
object = 'Note' |
86b8d58664eb
backport msplanner test from cubicweb-multisources
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
0
diff
changeset
|
17 |
|
86b8d58664eb
backport msplanner test from cubicweb-multisources
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
0
diff
changeset
|
18 |
|
86b8d58664eb
backport msplanner test from cubicweb-multisources
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
0
diff
changeset
|
19 |
class see_also(RelationDefinition): |
86b8d58664eb
backport msplanner test from cubicweb-multisources
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
0
diff
changeset
|
20 |
subject = ('Bookmark', 'Note') |
86b8d58664eb
backport msplanner test from cubicweb-multisources
Sylvain Thenault <sylvain.thenault@logilab.fr>
parents:
0
diff
changeset
|
21 |
object = ('Bookmark', 'Note') |