py_ext/PythonFileCTNMixin.py
changeset 1061 02f371f3e063
parent 738 413946c04c87
child 1097 233681f2a00e
equal deleted inserted replaced
1060:ac9896336b90 1061:02f371f3e063
    46         return self.PythonCode.gettext()
    46         return self.PythonCode.gettext()
    47     
    47     
    48     def CTNTestModified(self):
    48     def CTNTestModified(self):
    49         return self.ChangesToSave or not self.PythonIsSaved()
    49         return self.ChangesToSave or not self.PythonIsSaved()
    50     
    50     
    51     def OnCTNSave(self):
    51     def OnCTNSave(self, from_project_path=None):
    52         filepath = self.PythonFileName()
    52         filepath = self.PythonFileName()
    53         
    53         
    54         text = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n"
    54         text = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n"
    55         extras = {"xmlns":"http://www.w3.org/2001/XMLSchema",
    55         extras = {"xmlns":"http://www.w3.org/2001/XMLSchema",
    56                   "xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance",
    56                   "xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance",