def __init__(self, database): DbModel.__init__(self, database) mapper(AirPlane, self.table) self.datas = self.session.query(AirPlane).all() return
def init_db(): db = DbModel('kzz_data') return db
def __init__(self, database): DbModel.__init__(self, database) mapper(AirCompany, self.table) self.datas = self.session.query(AirCompany).all()