common/test/data/schema/Note.py
author Sandrine Ribeau <sandrine.ribeau@logilab.fr>
Tue, 11 Nov 2008 14:27:19 -0800
changeset 22 50f20cf0f440
parent 0 b97547f5f1fa
permissions -rw-r--r--
Merged chap_fondements_cubicweb and chap_bases_framework_cubicweb as they were both describing differents aspects of CubicWeb framework. Replaced original content of mise_en_place_environemment that was by mistake erased and replaced with chap_migration content.

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()