Salome HOME
Fixes for the import/export methods of the Verima plugin in SMESH.
authorFlorian BRUNET <FB15EB3N@dsp0657834.(none)>
Tue, 20 Jan 2015 16:38:10 +0000 (17:38 +0100)
committerFlorian BRUNET <FB15EB3N@dsp0657834.(none)>
Tue, 20 Jan 2015 16:38:10 +0000 (17:38 +0100)
src/Tools/Verima/Base/importFromCSV.py
src/Tools/Verima/Base/tablePerfs.py

index 33941eae40f55e1689bfbfad0830228b0b5a0847..afc3503fa7ca995448f3c64544e3e38ab06e0c83 100755 (executable)
@@ -24,6 +24,7 @@ if __name__ == "__main__":
          exit()
 
       maBase=Base(options.database)
          exit()
 
       maBase=Base(options.database)
+      maBase.create()
       maBase.initialise()
       maBase.importFromCSV(folder,options.partiel,options.force)
       maBase.close()
       maBase.initialise()
       maBase.importFromCSV(folder,options.partiel,options.force)
       maBase.close()
index e92fb50ba887406df208ddc657ad36639b649b33..8707711d63b1f3ddbd514c499edf05f7947747ed 100644 (file)
@@ -4,8 +4,8 @@ from tableDeBase import TableDeBase
 class TablePerfs (TableDeBase):
       def __init__(self):
           TableDeBase.__init__(self,"Perfs")
 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()
 
       def createSqlTable(self):
           query=QtSql.QSqlQuery()