ConfigTreeNode.py
changeset 1828 396da88d7b5c
parent 1782 5b6ad7a7fd9d
child 1831 56b48961cc68
equal deleted inserted replaced
1827:b8b47f9b5e56 1828:396da88d7b5c
   565                 # If dir have already be made, and file exist
   565                 # If dir have already be made, and file exist
   566                 if os.path.isdir(_self.CTNPath(NewCTNName)):  # and os.path.isfile(_self.ConfNodeXmlFilePath(CTNName)):
   566                 if os.path.isdir(_self.CTNPath(NewCTNName)):  # and os.path.isfile(_self.ConfNodeXmlFilePath(CTNName)):
   567                     # Load the confnode.xml file into parameters members
   567                     # Load the confnode.xml file into parameters members
   568                     _self.LoadXMLParams(NewCTNName)
   568                     _self.LoadXMLParams(NewCTNName)
   569                     # Basic check. Better to fail immediately.
   569                     # Basic check. Better to fail immediately.
   570                     if (_self.BaseParams.getName() != NewCTNName):
   570                     if _self.BaseParams.getName() != NewCTNName:
   571                         raise Exception(
   571                         raise Exception(
   572                             _("Project tree layout do not match confnode.xml {a1}!={a2} ").
   572                             _("Project tree layout do not match confnode.xml {a1}!={a2} ").
   573                             format(a1=NewCTNName, a2=_self.BaseParams.getName()))
   573                             format(a1=NewCTNName, a2=_self.BaseParams.getName()))
   574 
   574 
   575                     # Now, self.CTNPath() should be OK
   575                     # Now, self.CTNPath() should be OK