ConfigTreeNode.py
changeset 801 435e49e80832
parent 786 aaacf208beb9
child 814 5743cbdff669
equal deleted inserted replaced
800:e9406586bb14 801:435e49e80832
   366         # Rename confnode dir if exist
   366         # Rename confnode dir if exist
   367         if not dontexist:
   367         if not dontexist:
   368             shutil.move(oldname, self.CTNPath())
   368             shutil.move(oldname, self.CTNPath())
   369         # warn user he has two left hands
   369         # warn user he has two left hands
   370         if DesiredName != res:
   370         if DesiredName != res:
   371             self.GetCTRoot().logger.write_warning(_("A child names \"%s\" already exist -> \"%s\"\n")%(DesiredName,res))
   371             self.GetCTRoot().logger.write_warning(_("A child named \"%s\" already exist -> \"%s\"\n")%(DesiredName,res))
   372         return res
   372         return res
   373 
   373 
   374     def GetAllChannels(self):
   374     def GetAllChannels(self):
   375         AllChannels=[]
   375         AllChannels=[]
   376         for CTNInstance in self.CTNParent.IterChildren():
   376         for CTNInstance in self.CTNParent.IterChildren():