1 #@ MODIF compobloc Editeur DATE 02/07/2001 AUTEUR D6BHHJP J.P.LEFEBVRE
2 # CONFIGURATION MANAGEMENT OF EDF VERSION
3 # ======================================================================
4 # COPYRIGHT (C) 1991 - 2001 EDF R&D WWW.CODE-ASTER.ORG
5 # SEE THE FILE "LICENSE.TERMS" FOR INFORMATION ON USAGE AND
6 # REDISTRIBUTION OF THIS FILE.
7 # ======================================================================
15 class BLOCTreeItem(compofact.FACTTreeItem):
16 panel = compofact.FACTPanel
18 def get_objet(self,name) :
19 for v in self.object.mc_liste:
20 if v.nom == name : return v
23 def additem(self,name,pos):
24 if isinstance(name,Objecttreeitem.ObjectTreeItem) :
25 mcent=self.object.addentite(name.object,pos=pos)
27 mcent = self.object.addentite(name,pos=pos)
29 # on ne peut ajouter l'élément de nom name
32 def setfunction(value, object=mcent):
34 item = self.make_objecttreeitem(self.appli,mcent.nom + " : ", mcent, setfunction)
41 treeitem = BLOCTreeItem