test/data/rrqlexpr_on_eetype.py
branchreldefsecurity
changeset 3877 7ca53fc72a0a
parent 2634 273eec072cf8
child 4252 6c4f109c2b03
equal deleted inserted replaced
3876:1169d3154be6 3877:7ca53fc72a0a
     7 """
     7 """
     8 from yams.buildobjs import EntityType, String
     8 from yams.buildobjs import EntityType, String
     9 from cubicweb.schema import RRQLExpression
     9 from cubicweb.schema import RRQLExpression
    10 
    10 
    11 class ToTo(EntityType):
    11 class ToTo(EntityType):
    12     permissions = {
    12     __permissions__ = {
    13         'read': ('managers', RRQLExpression('S bla Y'),),
    13         'read': ('managers', RRQLExpression('S bla Y'),),
    14         'add': ('managers',),
    14         'add': ('managers',),
    15         'update': ('managers',),
    15         'update': ('managers',),
    16         'delete': ('managers',),
    16         'delete': ('managers',),
    17         }
    17         }