equal
deleted
inserted
replaced
1 # copyright 2003-2010 LOGILAB S.A. (Paris, FRANCE), all rights reserved. |
1 # copyright 2003-2011 LOGILAB S.A. (Paris, FRANCE), all rights reserved. |
2 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr |
2 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr |
3 # |
3 # |
4 # This file is part of CubicWeb. |
4 # This file is part of CubicWeb. |
5 # |
5 # |
6 # CubicWeb is free software: you can redistribute it and/or modify it under the |
6 # CubicWeb is free software: you can redistribute it and/or modify it under the |
13 # FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more |
13 # FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more |
14 # details. |
14 # details. |
15 # |
15 # |
16 # You should have received a copy of the GNU Lesser General Public License along |
16 # You should have received a copy of the GNU Lesser General Public License along |
17 # with CubicWeb. If not, see <http://www.gnu.org/licenses/>. |
17 # with CubicWeb. If not, see <http://www.gnu.org/licenses/>. |
18 """ |
18 from yams.buildobjs import EntityType, RelationDefinition, String, SubjectRelation |
19 |
|
20 """ |
|
21 from yams.buildobjs import RelationDefinition |
|
22 |
19 |
23 class comments(RelationDefinition): |
20 class comments(RelationDefinition): |
24 subject = 'Comment' |
21 subject = 'Comment' |
25 object = 'Card' |
22 object = 'Card' |
26 cardinality='1*' |
23 cardinality='1*' |
27 composite='object' |
24 composite='object' |
28 |
25 |
|
26 class Tag(EntityType): |
|
27 name = String(unique=True) |
|
28 tags = SubjectRelation('CWUser') |