misc/migration/postcreate.py
branchstable
changeset 2172 cf8f9180e63e
parent 1977 606923dff11b
child 2920 64322aa83a1d
equal deleted inserted replaced
2125:19861294506f 2172:cf8f9180e63e
    41 # add PERM_USE_TEMPLATE_FORMAT permission
    41 # add PERM_USE_TEMPLATE_FORMAT permission
    42 from cubicweb.schema import PERM_USE_TEMPLATE_FORMAT
    42 from cubicweb.schema import PERM_USE_TEMPLATE_FORMAT
    43 eid = add_entity('CWPermission', name=PERM_USE_TEMPLATE_FORMAT,
    43 eid = add_entity('CWPermission', name=PERM_USE_TEMPLATE_FORMAT,
    44                  label=_('use template languages'))
    44                  label=_('use template languages'))
    45 rql('SET X require_group G WHERE G name "managers", X eid %(x)s',
    45 rql('SET X require_group G WHERE G name "managers", X eid %(x)s',
    46     {'x': eid}, 'x')    
    46     {'x': eid}, 'x')