From: Florian BRUNET Date: Tue, 20 Jan 2015 16:38:10 +0000 (+0100) Subject: Fixes for the import/export methods of the Verima plugin in SMESH. X-Git-Tag: V7_6_0a1~31^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1667ba5bf57334ab6f83c58fcaae6a5b47a31b64;p=modules%2Fsmesh.git Fixes for the import/export methods of the Verima plugin in SMESH. --- diff --git a/src/Tools/Verima/Base/importFromCSV.py b/src/Tools/Verima/Base/importFromCSV.py index 33941eae4..afc3503fa 100755 --- a/src/Tools/Verima/Base/importFromCSV.py +++ b/src/Tools/Verima/Base/importFromCSV.py @@ -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() diff --git a/src/Tools/Verima/Base/tablePerfs.py b/src/Tools/Verima/Base/tablePerfs.py index e92fb50ba..8707711d6 100644 --- a/src/Tools/Verima/Base/tablePerfs.py +++ b/src/Tools/Verima/Base/tablePerfs.py @@ -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()