author | Aurelien Campeas <aurelien.campeas@logilab.fr> |
Tue, 12 May 2009 20:08:36 +0200 | |
branch | tls-sprint |
changeset 1763 | 65ec5ccc8927 |
parent 1476 | f94b41709ce6 |
child 1977 | 606923dff11b |
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) |
|
1476 | 8 |
|
744 | 9 |
class Societe(EntityType): |
10 |
nom = String() |
|
11 |
evaluee = SubjectRelation('Note') |
|
1476 | 12 |
|
744 | 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): |
|
1398
5fe84a5f7035
rename internal entity types to have CW prefix instead of E
sylvain.thenault@logilab.fr
parents:
750
diff
changeset
|
26 |
subject = 'CWUser' |
744 | 27 |
object = 'Note' |