Salome HOME
Merge remote branch 'origin/fbt/SMESH_Plugin_Verima_fix_ImportExport'
authorvsr <vsr@opencascade.com>
Tue, 3 Feb 2015 13:46:05 +0000 (16:46 +0300)
committervsr <vsr@opencascade.com>
Tue, 3 Feb 2015 13:46:05 +0000 (16:46 +0300)
src/Tools/Verima/Base/importFromCSV.py
src/Tools/Verima/Base/tablePerfs.py

index 33941ea..afc3503 100755 (executable)
@@ -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()
index e92fb50..8707711 100644 (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()