author | sylvain.thenault@logilab.fr |
Thu, 23 Apr 2009 16:08:40 +0200 | |
branch | tls-sprint |
changeset 1447 | a1ca676294f0 |
parent 1398 | 5fe84a5f7035 |
child 1802 | d628defebc17 |
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)]) |
|
4 |
||
5 |
class tags(RelationDefinition): |
|
6 |
subject = 'Tag' |
|
1398
5fe84a5f7035
rename internal entity types to have CW prefix instead of E
sylvain.thenault@logilab.fr
parents:
0
diff
changeset
|
7 |
object = ('BlogEntry', 'CWUser') |
0 | 8 |
|
9 |
class checked_by(RelationType): |
|
10 |
subject = 'BlogEntry' |
|
1398
5fe84a5f7035
rename internal entity types to have CW prefix instead of E
sylvain.thenault@logilab.fr
parents:
0
diff
changeset
|
11 |
object = 'CWUser' |
0 | 12 |
cardinality = '?*' |
13 |
permissions = { |
|
14 |
'add': ('managers',), |
|
15 |
'read': ('managers', 'users'), |
|
16 |
'delete': ('managers',), |
|
17 |
} |