def delete_user(cls, user_info): for f in UsersService.required_delete_fields: v = user_info.get(f, None) if v is None: raise ServiceException(ServiceException.missing_field, "Missing field = " + f) result = UsersRDB.delete_user(user_info) return result
def delete_user(cls, user_email): if UsersRDB.get_by_email(user_email) is None: raise TypeError("User with given email: " + user_email + " does not exist.") result = UsersRDB.delete_user(user_email) return result
def delete_user(cls, user_info): result = UsersRDB.delete_user(user_info) return result
def delete_user(cls, email): result = UsersRDB.delete_user(email) return result
def t3(): r = UsersRDB.delete_user('*****@*****.**') print("Result = \n", json.dumps(r, indent=2))
def delete_user(cls, template): result = UsersRDB.delete_user(template) return result