From 0e881e6978485985977e220e6d30ca5b599101e3 Mon Sep 17 00:00:00 2001 From: Christian Caremoli <> Date: Mon, 19 Nov 2007 15:51:10 +0000 Subject: [PATCH] CCAR: activation/desactivation des parametres --- Extensions/parametre.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Extensions/parametre.py b/Extensions/parametre.py index 54025443..58ceefa2 100644 --- a/Extensions/parametre.py +++ b/Extensions/parametre.py @@ -36,6 +36,7 @@ from Noyau.N_CR import CR from Noyau import N_OBJECT from Ihm import I_OBJECT from param2 import * +from Ihm import CONNECTOR class PARAMETRE(N_OBJECT.OBJECT,I_OBJECT.OBJECT,Formula) : """ @@ -214,6 +215,8 @@ class PARAMETRE(N_OBJECT.OBJECT,I_OBJECT.OBJECT,Formula) : self.jdc.append_param(self) except: pass + CONNECTOR.Emit(self,"add",None) + CONNECTOR.Emit(self,"valid") def inactive(self): """ @@ -223,6 +226,8 @@ class PARAMETRE(N_OBJECT.OBJECT,I_OBJECT.OBJECT,Formula) : self.actif = 0 self.jdc.del_param(self) self.jdc.delete_concept_after_etape(self,self) + CONNECTOR.Emit(self,"supp",None) + CONNECTOR.Emit(self,"valid") def isactif(self): """ -- 2.39.2