test/data/rrqlexpr_on_attr.py
author sylvain.thenault@logilab.fr
Wed, 08 Apr 2009 11:33:34 +0200
branchtls-sprint
changeset 1286 cb68c8af3858
parent 0 b97547f5f1fa
child 1802 d628defebc17
permissions -rw-r--r--
use entity's rset and row/col info

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