- commande_comment = self.node.item.get_objet_commentarise()
- self.parent.appli.bureau.JDCDisplay_courant.ReplaceObjectNode(self.node,commande_comment,None)
+ # On traite par une exception le cas où l'utilisateur final cherche à désactiver
+ # (commentariser) un commentaire.
+ try :
+ commande_comment = self.node.item.get_objet_commentarise()
+ self.parent.appli.bureau.JDCDisplay_courant.ReplaceObjectNode(self.node,commande_comment,None)
+ except Exception,e:
+ tkMessageBox.showerror("TOO BAD",str(e))
+ return