@classmethod
    def select(cls, where, *args):
        '''
        Find by where clause and return list.
        '''
        L = select('select * from %s %s' % (cls.__table__, where), *args) if where else \
            select('select * from %s' % cls.__table__)
        return [cls(**d) for d in L]
dataset/ETHPy150Open michaelliao/transwarp/transwarp/db.py/Model.select/original