test/data/rrqlexpr_on_attr.py
author Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
Wed, 21 Jan 2009 19:26:35 +0100
branch3.0
changeset 454 c35c318e6be5
parent 0 b97547f5f1fa
child 1802 d628defebc17
permissions -rw-r--r--
fix EditRelationBoxTemplate: the box might be passed an additional 'view' paraemter

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