equal
deleted
inserted
replaced
17 # with CubicWeb. If not, see <http://www.gnu.org/licenses/>. |
17 # with CubicWeb. If not, see <http://www.gnu.org/licenses/>. |
18 """ |
18 """ |
19 |
19 |
20 """ |
20 """ |
21 |
21 |
22 from yams.buildobjs import EntityType, String, SubjectRelation, RelationDefinition |
22 from yams.buildobjs import (EntityType, String, SubjectRelation, |
|
23 RelationDefinition) |
|
24 from cubicweb.schema import WorkflowableEntityType |
23 |
25 |
24 class Personne(EntityType): |
26 class Personne(EntityType): |
25 nom = String(required=True) |
27 nom = String(required=True) |
26 prenom = String() |
28 prenom = String() |
27 type = String() |
29 type = String() |
46 object = ('Personne', 'Note') |
48 object = ('Personne', 'Note') |
47 |
49 |
48 class evaluee(RelationDefinition): |
50 class evaluee(RelationDefinition): |
49 subject = 'CWUser' |
51 subject = 'CWUser' |
50 object = 'Note' |
52 object = 'Note' |
|
53 |
|
54 |
|
55 class StateFull(WorkflowableEntityType): |
|
56 name = String() |
|
57 |
|
58 |