예제 #1
0
 def by_user_name(cls, username):
     """A class method that permits to search users
     based on their user_name attribute.
     """
     return DBSession.query(cls).filter(cls.user_name==username).first()
예제 #2
0
파일: auth.py 프로젝트: sipb/gutenbach
 def by_user_name(cls, username):
     """A class method that permits to search users
     based on their user_name attribute.
     """
     return DBSession.query(cls).filter(cls.user_name == username).first()
예제 #3
0
 def by_email_address(cls, email):
     """A class method that can be used to search users
     based on their email addresses since it is unique.
     """
     return DBSession.query(cls).filter(cls.email_address==email).first()
예제 #4
0
파일: auth.py 프로젝트: sipb/gutenbach
 def by_email_address(cls, email):
     """A class method that can be used to search users
     based on their email addresses since it is unique.
     """
     return DBSession.query(cls).filter(cls.email_address == email).first()