author | Katia Saurfelt <katia.saurfelt@logilab.fr> |
Tue, 19 May 2009 12:07:03 +0200 | |
branch | stable |
changeset 1866 | 118c7528d08f |
parent 1836 | d3f0c6e868ef |
child 1977 | 606923dff11b |
permissions | -rw-r--r-- |
0 | 1 |
class Salesterm(EntityType): |
2 |
described_by_test = SubjectRelation('File', cardinality='1*', composite='subject') |
|
3 |
amount = Int(constraints=[IntervalBoundConstraint(0, 100)]) |
|
1836
d3f0c6e868ef
fix StringField widget selection with SizeConstraint and StaticVocabularyConstraint constraints
Florent <florent@secondweb.fr>
parents:
1802
diff
changeset
|
4 |
reason = String(maxsize=20, vocabulary=[u'canceled', u'sold']) |
1802
d628defebc17
delete-trailing-whitespace + some copyright update
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
1398
diff
changeset
|
5 |
|
0 | 6 |
class tags(RelationDefinition): |
7 |
subject = 'Tag' |
|
1398
5fe84a5f7035
rename internal entity types to have CW prefix instead of E
sylvain.thenault@logilab.fr
parents:
0
diff
changeset
|
8 |
object = ('BlogEntry', 'CWUser') |
0 | 9 |
|
10 |
class checked_by(RelationType): |
|
11 |
subject = 'BlogEntry' |
|
1398
5fe84a5f7035
rename internal entity types to have CW prefix instead of E
sylvain.thenault@logilab.fr
parents:
0
diff
changeset
|
12 |
object = 'CWUser' |
0 | 13 |
cardinality = '?*' |
14 |
permissions = { |
|
15 |
'add': ('managers',), |
|
16 |
'read': ('managers', 'users'), |
|
17 |
'delete': ('managers',), |
|
18 |
} |