Salome HOME
projects
/
modules
/
smesh.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
IPAL54004: Quadratic pyramids incorectly imported from UNV
[modules/smesh.git]
/
src
/
Tools
/
Verima
/
ajoutEnreg.py
diff --git
a/src/Tools/Verima/ajoutEnreg.py
b/src/Tools/Verima/ajoutEnreg.py
index c1dc4bc34b466843a5b00cbcbf4335ce030521ca..5f227debf30506358083198bb998d3914a859dbe 100755
(executable)
--- a/
src/Tools/Verima/ajoutEnreg.py
+++ b/
src/Tools/Verima/ajoutEnreg.py
@@
-5,7
+5,7
@@
rep=os.path.dirname(os.path.abspath(__file__))
installDir=os.path.join(rep,'..')
sys.path.insert(0,installDir)
installDir=os.path.join(rep,'..')
sys.path.insert(0,installDir)
-from
PyQt4 import QtGui,QtCore,QtSql
+from
qtsalome import *
from Base.dataBase import Base
def completeDatabase(fichier,table,enregistrement):
from Base.dataBase import Base
def completeDatabase(fichier,table,enregistrement):
@@
-13,7
+13,7
@@
def completeDatabase(fichier,table,enregistrement):
maBase.initialise()
nomTable="ma"+str(table)
matable=getattr(maBase,nomTable)
maBase.initialise()
nomTable="ma"+str(table)
matable=getattr(maBase,nomTable)
- model= Q
tSql.Q
SqlTableModel()
+ model= QSqlTableModel()
model.setTable(matable.nom)
nbCols=model.columnCount() -1
if table == "TableGroupesRef" : nbCols==nbCols+1
model.setTable(matable.nom)
nbCols=model.columnCount() -1
if table == "TableGroupesRef" : nbCols==nbCols+1