test/data/rrqlexpr_on_attr.py
author Aurelien Campeas <aurelien.campeas@logilab.fr>
Tue, 12 May 2009 20:08:36 +0200
branchtls-sprint
changeset 1763 65ec5ccc8927
parent 0 b97547f5f1fa
child 1802 d628defebc17
permissions -rw-r--r--
that should be automatic

class ToTo(EntityType):
    permissions = {
        'read': ('managers',),
        'add': ('managers',),
        'update': ('managers',),
        'delete': ('managers',),
        }
    attr = String()
    
class attr(RelationType):
    permissions = {
        'read': ('managers', ),
        'add': ('managers', RRQLExpression('S bla Y'),),
        'delete': ('managers',),
        }