common/test/data/schema/Note.py
author Aurelien Campeas <aurelien.campeas@logilab.fr>
Fri, 06 Feb 2009 20:24:08 +0100
changeset 560 005f78d21fc7
parent 0 b97547f5f1fa
permissions -rw-r--r--
[selectors] fix inline doc

from cubicweb.schema import format_constraint

class AnotherNote(EntityType):
    descr_format = String(meta=True, internationalizable=True,
                                default='text/rest', constraints=[format_constraint])
    descr = String(fulltextindexed=True,
                   description=_('more detailed description'))
    descr2_format = String(meta=True, internationalizable=True,
                                default='text/rest', constraints=[format_constraint])
    descr2 = String(fulltextindexed=True,
                    description=_('more detailed description'))
    

class SubNote(AnotherNote):
    __specializes_schema__ = True
    descr3 = String()