From: PASCALE NOYRET Date: Tue, 5 Apr 2022 14:34:38 +0000 (+0200) Subject: pour Essai avec Eric X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1e76ed594d1e3e86bd22cfa086fa0c28d02b97d9;p=tools%2Feficas.git pour Essai avec Eric --- diff --git a/InterfaceWeb/browser.py b/InterfaceWeb/browser.py index b5dee728..83117d96 100644 --- a/InterfaceWeb/browser.py +++ b/InterfaceWeb/browser.py @@ -109,10 +109,10 @@ class JDCNode(): validite=self.item.isValid() if debug : print ('ds onValid', self.item.nom, self.oldValidite, validite) if self.oldValidite==validite : return - #if self.oldValidite=='init' : - # self.oldValidite=validite - # print ('self.item.state' , self.item.state) - # if self.item.state != 'modified' : return + if self.oldValidite=='init' : + self.oldValidite=validite + print ('self.item.state' , self.item.state) + if self.item.state != 'modified' : return self.oldValidite=validite self.editor.connecteur.toWebApp('propageValide',self.getIdUnique(), validite) if debug : print ('appel de propageValide pour ', self.item.nom, validite,self.oldValidite) diff --git a/Validation/V_MCSIMP.py b/Validation/V_MCSIMP.py index b484672f..b6a7b499 100644 --- a/Validation/V_MCSIMP.py +++ b/Validation/V_MCSIMP.py @@ -85,6 +85,7 @@ class MCSIMP(object): self.valid = valid self.state = 'unchanged' if not old_valid or old_valid != self.valid: + self.parent.state = 'modified' self.initModifUp() def isValid(self, cr='non'):