ConfigTreeNode.py
changeset 1760 ed2e2afb9573
parent 1758 845ca626db09
child 1765 ccf59c1f0b45
equal deleted inserted replaced
1759:56e7f4a11046 1760:ed2e2afb9573
   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} ").\