def get_or_none(cls, mail_log_id): mail_log = database.get_or_none("mail_log", mail_log_id) if mail_log: mail_log = cls.from_flat(mail_log) return mail_log
def get_or_none(cls, person_id): person = database.get_or_none("person", person_id) if person: person = cls.from_flat(person) return person