test/data/rrqlexpr_on_attr.py
author Nicolas Chauvat <nicolas.chauvat@logilab.fr>
Wed, 26 Nov 2008 19:17:19 +0100
changeset 152 b435d80d0c9e
parent 0 b97547f5f1fa
child 1802 d628defebc17
permissions -rw-r--r--
[doc] rewrite paragraph about installing debian and ubuntu packages

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