Fixes for the import/export methods of the Verima plugin in SMESH.

This commit is contained in:
Florian BRUNET 2015-01-20 17:38:10 +01:00
parent 796ebe86e4
commit 1667ba5bf5
2 changed files with 3 additions and 2 deletions

View File

@ -24,6 +24,7 @@ if __name__ == "__main__":
exit()
maBase=Base(options.database)
maBase.create()
maBase.initialise()
maBase.importFromCSV(folder,options.partiel,options.force)
maBase.close()

View File

@ -4,8 +4,8 @@ from tableDeBase import TableDeBase
class TablePerfs (TableDeBase):
def __init__(self):
TableDeBase.__init__(self,"Perfs")
self.setField(('Maillage','Version','NbSecCpu','Memoire'))
self.setTypeField(('int','int','int','int'),('idMaillage','idVersion','Machine'))
self.setField(('Maillage','Version','Machine','NbSecCpu','Memoire'))
self.setTypeField(('int','int','str','int','int'),('idMaillage','idVersion','Machine'))
def createSqlTable(self):
query=QtSql.QSqlQuery()