15 """define an entity type, used to build the application schema""" |
15 """define an entity type, used to build the application schema""" |
16 name = String(required=True, indexed=True, internationalizable=True, |
16 name = String(required=True, indexed=True, internationalizable=True, |
17 unique=True, maxsize=64) |
17 unique=True, maxsize=64) |
18 description = RichString(internationalizable=True, |
18 description = RichString(internationalizable=True, |
19 description=_('semantic description of this entity type')) |
19 description=_('semantic description of this entity type')) |
20 meta = Boolean(description=_('is it an application entity type or not ?')) |
|
21 # necessary to filter using RQL |
20 # necessary to filter using RQL |
22 final = Boolean(description=_('automatic')) |
21 final = Boolean(description=_('automatic')) |
23 |
22 |
24 |
23 |
25 class CWRType(MetaEntityType): |
24 class CWRType(MetaEntityType): |
28 unique=True, maxsize=64) |
27 unique=True, maxsize=64) |
29 description_format = String(meta=True, internationalizable=True, maxsize=50, |
28 description_format = String(meta=True, internationalizable=True, maxsize=50, |
30 default='text/plain', constraints=[format_constraint]) |
29 default='text/plain', constraints=[format_constraint]) |
31 description = String(internationalizable=True, |
30 description = String(internationalizable=True, |
32 description=_('semantic description of this relation type')) |
31 description=_('semantic description of this relation type')) |
33 meta = Boolean(description=_('is it an application relation type or not ?')) |
|
34 symetric = Boolean(description=_('is this relation equivalent in both direction ?')) |
32 symetric = Boolean(description=_('is this relation equivalent in both direction ?')) |
35 inlined = Boolean(description=_('is this relation physically inlined? you should know what you\'re doing if you are changing this!')) |
33 inlined = Boolean(description=_('is this relation physically inlined? you should know what you\'re doing if you are changing this!')) |
36 fulltext_container = String(description=_('if full text content of subject/object entity ' |
34 fulltext_container = String(description=_('if full text content of subject/object entity ' |
37 'should be added to other side entity (the container).'), |
35 'should be added to other side entity (the container).'), |
38 vocabulary=('', _('subject'), _('object')), |
36 vocabulary=('', _('subject'), _('object')), |