test/data/rrqlexpr_on_attr.py
author sylvain.thenault@logilab.fr
Wed, 14 Jan 2009 19:39:32 +0100
changeset 417 828424d2eb3c
parent 0 b97547f5f1fa
child 1802 d628defebc17
permissions -rw-r--r--
oops, get back cross_relation from mapping to rql source

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