From 3399156799eaae0440b876af5d08ec2ef69f4462 Mon Sep 17 00:00:00 2001 From: eficas <> Date: Fri, 10 Jun 2005 13:47:49 +0000 Subject: [PATCH] CCAR: correction edition include avec fichier inexistant --- Editeur/compomacro.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Editeur/compomacro.py b/Editeur/compomacro.py index 5ec18f1f..2c7d3c08 100644 --- a/Editeur/compomacro.py +++ b/Editeur/compomacro.py @@ -38,7 +38,7 @@ from Ihm import CONNECTOR # __version__="$Name: $" -__Id__="$Id: compomacro.py,v 1.20 2005/05/24 10:34:16 eficas Exp $" +__Id__="$Id: compomacro.py,v 1.21 2005/06/01 15:18:15 eficas Exp $" # class MACROPanel(panels.OngletPanel): @@ -201,7 +201,7 @@ class INCLUDETreeItemBase(MACROTreeItem): #print "makeEdit",self.object,self.object.nom #print "makeEdit",self.object.jdc_aux,self.object.jdc_aux.nom #print "makeEdit",self.object.jdc_aux.context_ini - if self.object.jdc_aux is None: + if not hasattr(self.object,"jdc_aux") or self.object.jdc_aux is None: showerror("Include vide","L'include doit etre correctement initialisé avant d'etre édité") return self.parent_node=node @@ -217,7 +217,7 @@ class INCLUDETreeItemBase(MACROTreeItem): self.appli.bureau.closeJDCDISPLAY(self.myjdc) def makeView(self,appli,node): - if self.object.jdc_aux is None: + if not hasattr(self.object,"jdc_aux") or self.object.jdc_aux is None: showerror("Include vide","L'include doit etre correctement initialisé avant d'etre édité") return nom=self.object.nom -- 2.39.2