From 46c53d5fd0320df139bf2e21e3bae862802d1cf5 Mon Sep 17 00:00:00 2001 From: PASCALE NOYRET Date: Mon, 7 Feb 2022 22:10:06 +0100 Subject: [PATCH] remontee du valid sur le 1er elt d un mclist --- Ihm/I_MCCOMPO.py | 2 +- Ihm/I_MCLIST.py | 2 +- InterfaceSsIhm/editorSsIhm.py | 2 +- InterfaceWeb/compomclist.py | 9 +++++++++ 4 files changed, 12 insertions(+), 3 deletions(-) diff --git a/Ihm/I_MCCOMPO.py b/Ihm/I_MCCOMPO.py index 98e38745..11e32f8d 100644 --- a/Ihm/I_MCCOMPO.py +++ b/Ihm/I_MCCOMPO.py @@ -275,7 +275,7 @@ class MCCOMPO(I_OBJECT.OBJECT): Ajoute le mot-cle name a la liste des mots-cles de l'objet MCCOMPOSE """ - #print ('addEntite', name, pos) + #print ('addEntite mccompo', name, pos) self.initModif() if type(name)==bytes or type(name) == str : # on est en mode creation d'un motcle diff --git a/Ihm/I_MCLIST.py b/Ihm/I_MCLIST.py index 1946b77b..2ed00171 100644 --- a/Ihm/I_MCLIST.py +++ b/Ihm/I_MCLIST.py @@ -111,7 +111,7 @@ class MCList: Ajoute le mot cle facteur obj a la MCLIST a la position pos Retourne None si l'ajout est impossible """ - #print ('dans addEntite', self) + #print ('dans addEntite mcList', self) if type(obj)==bytes or type(obj) == str : # on est en mode creation d'un motcle raise EficasException(tr("traitement non-prevu")) diff --git a/InterfaceSsIhm/editorSsIhm.py b/InterfaceSsIhm/editorSsIhm.py index 871df824..805863fa 100755 --- a/InterfaceSsIhm/editorSsIhm.py +++ b/InterfaceSsIhm/editorSsIhm.py @@ -242,7 +242,7 @@ class JDCEditorSsIhm : """ Initialise un nouveau JDC vierge """ - self.modified=1 + self.modified=True CONTEXT.unsetCurrentStep() texte="" diff --git a/InterfaceWeb/compomclist.py b/InterfaceWeb/compomclist.py index 58eab2ad..6066f87a 100644 --- a/InterfaceWeb/compomclist.py +++ b/InterfaceWeb/compomclist.py @@ -83,6 +83,15 @@ class Node(browser.JDCNode,typeNode.PopUpMenuNodeMinimal): def onValid(self): #----------------- + #print( self.item.nature) + if self.item.nature == 'MCFACT' : + validite=self.item.isValid() + if self.oldValidite != validite : + self.editor.connecteur.toWebApp('propageValide',self.item.idUnique, validite) + self.oldValidite = validite + # browser.JDCNode.onValid(self) + # return + if self.item.state != 'modified' : return self.treeParent.item.state= 'modified' -- 2.39.2