web/test/data/schema/testschema.py
changeset 1977 606923dff11b
parent 1836 d3f0c6e868ef
child 2438 576f4d51f826
equal deleted inserted replaced
1976:851e08142873 1977:606923dff11b
       
     1 """
       
     2 
       
     3 :organization: Logilab
       
     4 :copyright: 2001-2009 LOGILAB S.A. (Paris, FRANCE), license is LGPL v2.
       
     5 :contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
       
     6 :license: GNU Lesser General Public License, v2.1 - http://www.gnu.org/licenses
       
     7 """
     1 class Salesterm(EntityType):
     8 class Salesterm(EntityType):
     2     described_by_test = SubjectRelation('File', cardinality='1*', composite='subject')
     9     described_by_test = SubjectRelation('File', cardinality='1*', composite='subject')
     3     amount = Int(constraints=[IntervalBoundConstraint(0, 100)])
    10     amount = Int(constraints=[IntervalBoundConstraint(0, 100)])
     4     reason = String(maxsize=20, vocabulary=[u'canceled', u'sold'])
    11     reason = String(maxsize=20, vocabulary=[u'canceled', u'sold'])
     5 
    12