def __init__(self, email): self._email = email self._requestor = RequestorEntity.all().filter('email = ', self._email).get()
def create_requestor(self, name, phone, company): try: self._requestor = RequestorEntity.create(email = self._email, name = name, phone = phone, company = company) self._requestor.put() except(DuplicatedEntityException): raise RequestorException()