comparison tools/memory.py @ 214:e178e8f6d13a

fixed some unicode issue
author Goffi <goffi@goffi.org>
date Mon, 27 Dec 2010 17:20:25 +0100
parents ca1010f47002
children
comparison
equal deleted inserted replaced
213:5c420b1f1df4 214:e178e8f6d13a
95 error (_("Can't load individual params data !")) 95 error (_("Can't load individual params data !"))
96 96
97 def save_xml(self, file): 97 def save_xml(self, file):
98 """Save parameters template to xml file""" 98 """Save parameters template to xml file"""
99 with open(file, 'wb') as xml_file: 99 with open(file, 'wb') as xml_file:
100 self.dom.writexml(xml_file) 100 xml_file.write(self.dom.toxml('utf-8'))
101 101
102 def save_data(self, file): 102 def save_data(self, file):
103 """Save parameters data to file""" 103 """Save parameters data to file"""
104 #TODO: save properly in a separate file/database, 104 #TODO: save properly in a separate file/database,
105 # use different behaviour depending of the data type (e.g. password encrypted) 105 # use different behaviour depending of the data type (e.g. password encrypted)