def tg_importar_DB(self): path = QTVarios.select_ext(self, "lcf") if not path: return None dlTmp = QTVarios.ImportarFicheroDB(self) dlTmp.show() dbn = DBgamesFEN.DBgamesFEN(path) self.dbGamesFEN.appendDB(dbn, range(dbn.all_reccount()), dlTmp) self.actualiza(True)
def tg_importar_DB(self): path = QTVarios.select_ext(self, "lcf") if path: dlTmp = QTVarios.ImportarFicheroDB(self) dlTmp.show() dbn = DBgamesFEN.DBgamesFEN(path) dbn.lee_rowids() liRecnos = range(dbn.reccount()) self.dbGamesFEN.appendDB(dbn, liRecnos, dlTmp) self.actualiza(True)
def tg_exportar_DB(self): resp = self.tg_exportar("lcg") if not resp: return li, modo, path = resp if modo == "w" and Util.existeFichero(path): Util.borraFichero(path) Util.borraFichero(path+"_s1") dlTmp = QTVarios.ImportarFicheroDB(self) dlTmp.show() dbn = DBgames.DBgames(path) dbn.appendDB(self.dbGames, li, dlTmp)
def tw_importar_DB(self): path = QTVarios.select_db(self, self.configuracion, False, False) if not path: return None dlTmp = QTVarios.ImportarFicheroDB(self) if self.dbGames.allows_duplicates: dlTmp.hide_duplicates() dlTmp.show() dbn = DBgames.DBgames(path) self.dbGames.appendDB(dbn, range(dbn.all_reccount()), dlTmp) self.rehaz_columnas() self.actualiza(True) if self.wsummary: self.wsummary.reset()
def tw_exportar_db(self, lista): dbpath = QTVarios.select_db(self, self.configuracion, False, True) if not dbpath: return if dbpath == ":n": dbpath = new_database(self, self.configuracion) if dbpath is None: return dlTmp = QTVarios.ImportarFicheroDB(self) dlTmp.ponExportados() dlTmp.show() dbn = DBgames.DBgames(dbpath) if dbn.allows_duplicates: dlTmp.hide_duplicates() dbn.appendDB(self.dbGames, lista, dlTmp)