def by_email(cls, email): return DBSession.query(User).filter(User.email == email).first()
def by_id(cls, id): return DBSession.query(User).filter(User.id == id).first()