etherlab/EthercatMaster.py
changeset 2133 ba0b2ca7db26
parent 2127 32255ca50fb0
child 2135 ca1c34ff6c10
child 2137 b65abacdbdf9
equal deleted inserted replaced
2132:9f5e4dc43053 2133:ba0b2ca7db26
   634         return vars
   634         return vars
   635     
   635     
   636     def CTNTestModified(self):
   636     def CTNTestModified(self):
   637         return self.ChangesToSave or not self.ModelIsSaved()    
   637         return self.ChangesToSave or not self.ModelIsSaved()    
   638 
   638 
   639     def OnCTNSave(self):
   639     def OnCTNSave(self, from_project_path=None):
   640         config_filepath = self.ConfigFileName()
   640         config_filepath = self.ConfigFileName()
   641         
   641         
   642         config_text = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n"
   642         config_text = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n"
   643         config_extras = {"xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance",
   643         config_extras = {"xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance",
   644                   "xsi:noNamespaceSchemaLocation" : "EtherCATInfo.xsd"}
   644                   "xsi:noNamespaceSchemaLocation" : "EtherCATInfo.xsd"}