author | Arthur Lutz <arthur.lutz@logilab.fr> |
Wed, 04 Nov 2015 12:04:33 +0100 | |
changeset 10827 | 768d332de17b |
parent 10554 | c39749d14c53 |
child 10907 | 9ae707db5265 |
permissions | -rw-r--r-- |
from yams.buildobjs import ComputedRelation, EntityType, RelationDefinition from cubicweb.schema import RRQLExpression class Subject(EntityType): pass class Object(EntityType): pass class relation(RelationDefinition): subject = 'Subject' object = 'Object' class computed(ComputedRelation): rule = 'S relation O' __permissions__ = {'read': (RRQLExpression('S is ET'),)}