equal
deleted
inserted
replaced
559 # Call the base confnode template init - change XSD into class members |
559 # Call the base confnode template init - change XSD into class members |
560 ConfigTreeNode.__init__(_self) |
560 ConfigTreeNode.__init__(_self) |
561 # check name is unique |
561 # check name is unique |
562 NewCTNName = _self.FindNewName(CTNName) |
562 NewCTNName = _self.FindNewName(CTNName) |
563 # If dir have already be made, and file exist |
563 # If dir have already be made, and file exist |
564 if os.path.isdir(_self.CTNPath(NewCTNName)): #and os.path.isfile(_self.ConfNodeXmlFilePath(CTNName)): |
564 if os.path.isdir(_self.CTNPath(NewCTNName)): # and os.path.isfile(_self.ConfNodeXmlFilePath(CTNName)): |
565 # Load the confnode.xml file into parameters members |
565 # Load the confnode.xml file into parameters members |
566 _self.LoadXMLParams(NewCTNName) |
566 _self.LoadXMLParams(NewCTNName) |
567 # Basic check. Better to fail immediately. |
567 # Basic check. Better to fail immediately. |
568 if (_self.BaseParams.getName() != NewCTNName): |
568 if (_self.BaseParams.getName() != NewCTNName): |
569 msg = _("Project tree layout do not match confnode.xml {a1}!={a2} ").\ |
569 msg = _("Project tree layout do not match confnode.xml {a1}!={a2} ").\ |