test/data/rrqlexpr_on_attr.py
author sylvain.thenault@logilab.fr
Wed, 18 Feb 2009 11:09:55 +0100
branchtls-sprint
changeset 765 8fda14081686
parent 0 b97547f5f1fa
child 1802 d628defebc17
permissions -rw-r--r--
kill Form, EntityForm and AnyRsetForm

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',),
        }