Example #1
0
 def get_by_code(cls, code):
     it = DBSession.query(cls).filter(cls.id_ == encode62(code))
     return it.first()
Example #2
0
 def _get_code(self):
     return encode62(self.id_)