test/data/rrqlexpr_on_attr.py
author Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
Mon, 16 Feb 2009 20:40:12 +0100
branchtls-sprint
changeset 642 2cf7b79d8e77
parent 0 b97547f5f1fa
child 1802 d628defebc17
permissions -rw-r--r--
[javascript] rewrote loadxhtml() plugin in order to be able to pass the XHR object to postAjaxLoad

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