Exemplo n.º 1
0
def load_permission(_context, permission_conf):
    permission = Permission(**permission_conf['config'])
    component.utility(_context, IPermission, permission,
                      name=permission_conf['config']['id'])
Exemplo n.º 2
0
def load_permission(_context, permission_conf):
    permission = Permission(**permission_conf["config"])
    component.utility(_context,
                      IPermission,
                      permission,
                      name=permission_conf["config"]["id"])