Exemplo n.º 1
0
def bg_role(role_dict, bg_nested_role):
    dict_copy = copy.deepcopy(role_dict)
    dict_copy['roles'] = [bg_nested_role]
    return Role(**dict_copy)
Exemplo n.º 2
0
 def role(self):
     return Role(name="bg-admin",
                 roles=["bg-anonymous"],
                 permissions=["bg-all"])
Exemplo n.º 3
0
def bg_nested_role(nested_role_dict):
    return Role(**nested_role_dict)
Exemplo n.º 4
0
 def role(self):
     return Role(name='bg-admin',
                 roles=['bg-anonymous'],
                 permissions=['bg-all'])