author | Adrien Di Mascio <Adrien.DiMascio@logilab.fr> |
Thu, 14 May 2009 11:38:40 +0200 | |
branch | tls-sprint |
changeset 1802 | d628defebc17 |
parent 1398 | 5fe84a5f7035 |
child 1836 | d3f0c6e868ef |
permissions | -rw-r--r-- |
class Salesterm(EntityType): described_by_test = SubjectRelation('File', cardinality='1*', composite='subject') amount = Int(constraints=[IntervalBoundConstraint(0, 100)]) class tags(RelationDefinition): subject = 'Tag' object = ('BlogEntry', 'CWUser') class checked_by(RelationType): subject = 'BlogEntry' object = 'CWUser' cardinality = '?*' permissions = { 'add': ('managers',), 'read': ('managers', 'users'), 'delete': ('managers',), }