test/data/rqlexpr_on_ertype_read.py
author Sandrine Ribeau <sandrine.ribeau@logilab.fr>
Mon, 22 Dec 2008 14:13:39 -0800
changeset 273 5b3f9e09a6ea
parent 0 b97547f5f1fa
child 1802 d628defebc17
permissions -rw-r--r--
[doc] Change logo has been moved to FAQ.

class ToTo(EntityType):
    permissions = {
        'read': ('managers',),
        'add': ('managers',),
        'update': ('managers',),
        'delete': ('managers',),
        }
    toto = SubjectRelation('TuTu')
    
class TuTu(EntityType):
    permissions = {
        'read': ('managers',),
        'add': ('managers',),
        'update': ('managers',),
        'delete': ('managers',),
        }

class toto(RelationType):
    permissions = {
        'read': ('managers', RRQLExpression('S bla Y'), ),
        'add': ('managers',),
        'delete': ('managers',),
        }