author | Katia Saurfelt <katia.saurfelt@logilab.fr> |
Tue, 19 May 2009 14:31:42 +0200 | |
branch | stable |
changeset 1868 | af1ae863606d |
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' |