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 |
|
19 |
descr = String() |
|
20 |
|
|
21 |
class tags(RelationDefinition): |
|
22 |
subject = 'Tag' |
|
23 |
object = ('Personne', 'Note') |
|
24 |
|
|
25 |
class evaluee(RelationDefinition): |
|
26 |
subject = 'EUser' |
|
27 |
object = 'Note' |