author | Julien Cristau <julien.cristau@logilab.fr> |
Tue, 23 Feb 2016 12:09:01 +0100 | |
changeset 11150 | 6f0c9d5c2f85 |
parent 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'),)}