PLCControler.py
changeset 702 ece862b07321
parent 693 4ecfbcc09bef
child 704 aca0c83ed82e
equal deleted inserted replaced
701:25fbbb005a30 702:ece862b07321
  2897 
  2897 
  2898     def SaveXMLFile(self, filepath = None):
  2898     def SaveXMLFile(self, filepath = None):
  2899         if not filepath and self.FilePath == "":
  2899         if not filepath and self.FilePath == "":
  2900             return False
  2900             return False
  2901         else:
  2901         else:
  2902             contentheader = self.Project.getcontentHeader()
  2902             contentheader = {"modificationDateTime": datetime.datetime(*localtime()[:6])}
  2903             contentheader["modificationDateTime"] = datetime.datetime(*localtime()[:6])
       
  2904             self.Project.setcontentHeader(contentheader)
  2903             self.Project.setcontentHeader(contentheader)
  2905             
  2904             
  2906             text = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
  2905             text = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
  2907             extras = {"xmlns" : "http://www.plcopen.org/xml/tc6.xsd",
  2906             extras = {"xmlns" : "http://www.plcopen.org/xml/tc6.xsd",
  2908                       "xmlns:xhtml" : "http://www.w3.org/1999/xhtml",
  2907                       "xmlns:xhtml" : "http://www.w3.org/1999/xhtml",