Esempio 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)
Esempio n. 2
0
 def role(self):
     return Role(name="bg-admin",
                 roles=["bg-anonymous"],
                 permissions=["bg-all"])
Esempio n. 3
0
def bg_nested_role(nested_role_dict):
    return Role(**nested_role_dict)
Esempio n. 4
0
 def role(self):
     return Role(name='bg-admin',
                 roles=['bg-anonymous'],
                 permissions=['bg-all'])