test/data/rrqlexpr_on_attr.py
author Julien Jehannet <julien.jehannet@logilab.fr>
Fri, 16 Jan 2009 20:03:58 +0100
changeset 462 c6e313c7a2e0
parent 0 b97547f5f1fa
child 1802 d628defebc17
permissions -rw-r--r--
use 99 as default sequence number in runlevel

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