author | sylvain.thenault@logilab.fr |
Wed, 18 Feb 2009 11:09:55 +0100 | |
branch | tls-sprint |
changeset 765 | 8fda14081686 |
parent 750 | 89e997bc2bf1 |
child 1398 | 5fe84a5f7035 |
permissions | -rw-r--r-- |
744 | 1 |
class Personne(EntityType): |
748 | 2 |
nom = String(required=True) |
744 | 3 |
prenom = String() |
4 |
type = String() |
|
5 |
travaille = SubjectRelation('Societe') |
|
6 |
evaluee = SubjectRelation(('Note', 'Personne')) |
|
7 |
connait = SubjectRelation('Personne', symetric=True) |
|
8 |
||
9 |
class Societe(EntityType): |
|
10 |
nom = String() |
|
11 |
evaluee = SubjectRelation('Note') |
|
12 |
||
13 |
class Note(EntityType): |
|
14 |
type = String() |
|
15 |
ecrit_par = SubjectRelation('Personne') |
|
16 |
||
17 |
class SubNote(Note): |
|
18 |
__specializes_schema__ = True |
|
750
89e997bc2bf1
update test for new test schema
sylvain.thenault@logilab.fr
parents:
748
diff
changeset
|
19 |
description = String() |
744 | 20 |
|
21 |
class tags(RelationDefinition): |
|
22 |
subject = 'Tag' |
|
23 |
object = ('Personne', 'Note') |
|
24 |
||
25 |
class evaluee(RelationDefinition): |
|
26 |
subject = 'EUser' |
|
27 |
object = 'Note' |