200 |
200 |
201 # generate XML for base XML parameters controller of the plugin |
201 # generate XML for base XML parameters controller of the plugin |
202 if self.MandatoryParams: |
202 if self.MandatoryParams: |
203 BaseXMLFile = open(self.PluginBaseXmlFilePath(),'w') |
203 BaseXMLFile = open(self.PluginBaseXmlFilePath(),'w') |
204 BaseXMLFile.write("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n") |
204 BaseXMLFile.write("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n") |
205 BaseXMLFile.write(self.MandatoryParams[1].generateXMLText(self.MandatoryParams[0], 0)) |
205 BaseXMLFile.write(self.MandatoryParams[1].generateXMLText(self.MandatoryParams[0], 0).encode("utf-8")) |
206 BaseXMLFile.close() |
206 BaseXMLFile.close() |
207 |
207 |
208 # generate XML for XML parameters controller of the plugin |
208 # generate XML for XML parameters controller of the plugin |
209 if self.PlugParams: |
209 if self.PlugParams: |
210 XMLFile = open(self.PluginXmlFilePath(),'w') |
210 XMLFile = open(self.PluginXmlFilePath(),'w') |
211 XMLFile.write("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n") |
211 XMLFile.write("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n") |
212 XMLFile.write(self.PlugParams[1].generateXMLText(self.PlugParams[0], 0)) |
212 XMLFile.write(self.PlugParams[1].generateXMLText(self.PlugParams[0], 0).encode("utf-8")) |
213 XMLFile.close() |
213 XMLFile.close() |
214 |
214 |
215 # Call the plugin specific OnPlugSave method |
215 # Call the plugin specific OnPlugSave method |
216 result = self.OnPlugSave() |
216 result = self.OnPlugSave() |
217 if not result: |
217 if not result: |