equal
deleted
inserted
replaced
|
1 from cubicweb.schema import format_constraint |
|
2 |
|
3 class AnotherNote(EntityType): |
|
4 descr_format = String(meta=True, internationalizable=True, |
|
5 default='text/rest', constraints=[format_constraint]) |
|
6 descr = String(fulltextindexed=True, |
|
7 description=_('more detailed description')) |
|
8 descr2_format = String(meta=True, internationalizable=True, |
|
9 default='text/rest', constraints=[format_constraint]) |
|
10 descr2 = String(fulltextindexed=True, |
|
11 description=_('more detailed description')) |
|
12 |
|
13 |
|
14 class SubNote(AnotherNote): |
|
15 __specializes_schema__ = True |
|
16 descr3 = String() |