equal
deleted
inserted
replaced
|
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 |