equal
deleted
inserted
replaced
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 |