Merge remote branch 'origin/fbt/SMESH_Plugin_Verima_fix_ImportExport'

This commit is contained in:
vsr 2015-02-03 16:46:05 +03:00
commit 45b7e5c3e1
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()