test/data/rrqlexpr_on_attr.py
author Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
Wed, 12 Nov 2008 16:07:40 +0100
changeset 28 9b7067bfaa15
parent 0 b97547f5f1fa
child 1802 d628defebc17
permissions -rw-r--r--
introduce html_headers.on_load() method as a shortcut for add_post_inline_script('''jQuery(document).ready(...''')

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