self.Commandes_Ordre_Catalogue =self.readercata.Commandes_Ordre_Catalogue
if self.appliEficas.readercata.demandeCatalogue==True :
- nomFichierTranslation='translatorFichier'+'_'+str(self.appliEficas.readercata.versionCode)
+ nomFichierTranslation='translatorFichier'+'_'+str(self.appliEficas.readercata.labelCode)
if hasattr(self.appliEficas.maConfiguration,nomFichierTranslation) :
translatorFichier=getattr(self.appliEficas.maConfiguration,nomFichierTranslation)
from Extensions import localisation
"""
Class implementing the main user interface.
"""
- def __init__(self,code=None,salome=1,parent=None, multi=False,langue='fr',ssIhm=False,versionCode=None):
+ def __init__(self,code=None,salome=1,parent=None, multi=False,langue='fr',ssIhm=False,labelCode=None):
"""
Constructor
"""
"""
Class implementing the main user interface.
"""
- def __init__(self,code=None,salome=1,parent=None,multi=False,langue='fr',ssIhm=True,versionCode=None):
+ def __init__(self,code=None,salome=1,parent=None,multi=False,langue='fr',ssIhm=True,labelCode=None):
"""
Constructor
"""
version=getEficasVersion()
self.VERSION_EFICAS="Eficas QT5 Salome " + version
- self.versionCode=versionCode
+ self.labelCode=labelCode
self.salome=salome
self.ssIhm=True
if __name__=='__main__':
# Modules Eficas
- monEficas= AppliSsIhm(code='Adao',salome=0,versionCode='V83')
+ monEficas= AppliSsIhm(code='Adao',salome=0,labelCode='V83')
self.appliEficas.format_fichier='python'
self.appliEficas.format_fichier_in ='xml'
self.modeNouvCommande=self.appliEficas.maConfiguration.modeNouvCommande
- self.versionCode=self.appliEficas.versionCode
+ self.labelCode=self.appliEficas.labelCode
self.version_cata=None
- self.fic_cata=None
+ self.ficCata=None
self.OpenCata()
self.cataitem=None
self.titre='Eficas XML'
def OpenCata(self):
- #self.fic_cata = 'Cata_MED_FAM.xml'
+ #self.ficCata = 'Cata_MED_FAM.xml'
#xml = open('/home/A96028/QT5GitEficasTravail/eficas/Med/Cata_MED_FAM.xml').read()
#xml = open('/home/A96028/QT5GitEficasTravail/eficas/CataTestXSD/cata_test1.xml').read()
self.choisitCata()
- xml=open(self.fic_cata).read()
+ xml=open(self.ficCata).read()
SchemaMed = readerEfiXsd.efficas.CreateFromDocument(xml)
SchemaMed.exploreCata()
self.cata=SchemaMed