commentaire2=""
valide=1
if listevaleur==None: return
+ if listevaleur=="": return
if not( type(listevaleur) in (types.ListType,types.TupleType)) :
listevaleur=tuple(listevaleur)
for valeur in listevaleur :
# On teste le type de la valeur
valide=self.node.item.valide_item(valeur)
if not valide :
- #testtype,commentaire = self.node.item.object.verif_type(valeur)
#print self.__class__
#if not testtype :
try :
valeur,valide=self.node.item.eval_valeur(valeur)
- print "apres try"
+ valide,commentaire = self.node.item.object.verif_type(valeur)
except :
#return testtype,commentaire,"",listeRetour
pass
self.update_barre()
if not self.cata :
QMessageBox.critical( self.parent, "Import du catalogue","Impossible d'importer le catalogue %s" %self.fic_cata)
- self.appli.quit()
+ self.appli.parent.ui.close()
sys.exit(1)
#
# analyse du catalogue (ordre des mots-clés)
# teste si plusieurs catalogues ou non
if len(liste_choix) == 0:
QMessageBox.critical( self.parent, "", "Aucun catalogue déclaré pour %s" %self.code)
- self.appli.quit()
+ self.appli.parent.ui.close()
sys.exit(1)
# création d'une boite de dialogue modale
return self.getProject().ppath
else:
- # None will cause open dialog to start with cwd
- return None
+ try :
+ userDir=os.path.expanduser("~/Eficas_install/")
+ return userDir
+ except :
+ return ""
def _getOpenFileFilter(self):
if fn is None:
fn = QFileDialog.getOpenFileName(self._getOpenStartDir(),
- self.trUtf8('JDC Files (*.comm);;''All Files (*)'), self.ui, None, None, None)
+ self.trUtf8('JDC Files (*.comm);;''All Files (*)'), self.ui)
if fn.isNull():
return
@return String name of directory to start or None
"""
# if we have an active source, return its path
+ print self.activeWindow()
if self.activeWindow() is not None and \
self.activeWindow().getFileName():
return os.path.dirname(self.activeWindow().getFileName())
else:
# None will cause open dialog to start with cwd
- return None
+ try :
+ userDir=os.path.expanduser("~/Eficas_install/")
+ return userDir
+ except :
+ return ""
def handleEditorOpened(self):
# Form implementation generated from reading ui file 'desChoixCata.ui'
#
-# Created: lun nov 19 11:09:03 2007
+# Created: mar fév 19 12:14:31 2008
# by: The PyQt User Interface Compiler (pyuic) 3.13
#
# WARNING! All changes made in this file will be lost!
self.connect(self.buttonOk,SIGNAL("clicked()"),self.BOkPressed)
self.connect(self.buttonCancel,SIGNAL("clicked()"),self.BCancelPressed)
- self.connect(self.CBChoixCata,SIGNAL("textChanged(const QString&)"),self.CataChoisi)
+ self.connect(self.CBChoixCata,SIGNAL("activated(const QString&)"),self.CataChoisi)
def languageChange(self):
</connection>
<connection>
<sender>CBChoixCata</sender>
- <signal>textChanged(const QString&)</signal>
+ <signal>activated(const QString&)</signal>
<receiver>DChoixCata</receiver>
<slot>CataChoisi()</slot>
</connection>