def __call__(self, name): r = Role.find(name) if not r: raise DoesNotExistsException( "Role {0} does not exists in database".format(name)) r.delete() if self.cli_mode: print("Role {0} deleted".format(name))
def __call__(self, name): r = Role.find(name) if not r: raise DoesNotExistsException("Role {0} does not exists in database" .format(name)) r.delete() if self.cli_mode: print("Role {0} deleted".format(name))
def __call__(self, name): r = Role.find(name) if not r: raise DoesNotExistsException( "Role {0} does not exists in database".format(name)) ret = r.as_dict() if self.cli_mode: print(title(r.name + ':')) pretty_print(ret) return ret
def __call__(self, name): r = Role.find(name) if not r: raise DoesNotExistsException("Role {0} does not exists in database" .format(name)) ret = r.as_dict() if self.cli_mode: print(title(r.name + ':')) pretty_print(ret) return ret