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