"""
Classe de base pour definir des types de structures de donnees ASTER
equivalent d un concept ASTER
- Doit_on garder tout ce qui concerne jeveux ?
+ Doit_on garder tout ce qui concerne jeveux ? les concepts ?
"""
idracine = "SD"
def setName(self, nom):
"""Positionne le nom de self
"""
+ print ('uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu')
+ print ('uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu')
+ print ('uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu')
+ print ('uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu')
+ print ('uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu')
self.nom = nom
def isTypCO(self):
#self.doitSenregistrerComme = None
self.txtNomComplet=''
self.redefinit=False
+ self.dejaPrepareDump=False
def affecter_parente(self):
"""
#import traceback
#traceback.print_stack()
#print(("MCCOMPO.buildMc _____________________________________", self.nom))
- #print (self.dicoPyxbDeConstruction)
if CONTEXT.debug:
print(("MCCOMPO.buildMc ", self.nom))
# Dans la phase de reconstruction args peut contenir des mots-clés
# mais qui sont malgré tout des descendants de l'objet courant
# (petits-fils, ...)
args = self.valeur
+ #print ('MCCOMPO___________________', self.valeur)
if args == None: args = {}
mcListe = []
del self.dicoPyxbDeConstruction[k]
else :
objPyxbDeConstruction=None
+ #print (args.get(k, None))
objet = v(val=args.get(k, None), nom=k, parent=self,objPyxbDeConstruction=objPyxbDeConstruction)
mcListe.append(objet)
# Si l'objet a une position globale on l'ajoute aux listes
- nom
- parent
"""
- #print ('MCFACT', self, val, definition, nom, parent, objPyxbDeConstruction)
- import traceback
+ print ('MCFACT', self, val, definition, nom, parent, dicoPyxbDeConstruction)
+ #import traceback
#traceback.print_stack()
- #if nom == 'experience' : print ('MCFACT', self, parent, dicoPyxbDeConstruction); exit()
self.dicoPyxbDeConstruction=dicoPyxbDeConstruction
if self.dicoPyxbDeConstruction :
self.objPyxbDeConstruction=self.dicoPyxbDeConstruction['objEnPyxb']
- valeur : valeur du mot-clé simple en tenant compte de la valeur par défaut
"""
- #print ("MCSIMP, ------------------------")
#print (self, val, definition, nom, parent)
self.definition = definition
self.nom = nom
de la valeur donnée. Defaut si val == None
"""
if (val is None and hasattr(self.definition, 'defaut')): val = self.definition.defaut
- if val in list(self.jdc.sdsDict.keys()): return self.jdc.sdsDict[val]
+ if self.jdc != None and val in list(self.jdc.sdsDict.keys()): return self.jdc.sdsDict[val]
# dans le cas de lecture de .comm, il est possible que l objet est deja ete cree
# peut-etre devrait on aussi verifier que val est de type string ?
if self.definition.creeDesObjets :
self.affecter_parente()
self.checkDefinition(self.nom)
self.txtNomComplet=""
+ self.dejaPrepareDump=False
def __call__(self, reuse=None, **args):
"""
self.UIinfo = UIinfo
self.affecter_parente()
self.checkDefinition(self.nom)
+ self.dejaPrepareDump=False
def __call__(self, **args):
"""