Beispiel #1
0
	def writeXml(self):
		file = open(XML_CONFIG, 'w')
		file.writelines(buildConfig(self.defaultTimer, self.timers))
		file.close()
Beispiel #2
0
	def getXml(self):
		return buildConfig(self.defaultTimer, self.timers, webif = True)
	def writeXml(self):
		with open(XML_CONFIG, 'w') as config:
			config.writelines(buildConfig(self.defaultTimer, self.timers))
	def writeXml(self):
		# XXX: we probably want to indicate failures in some way :)
		saveFile(XML_CONFIG, buildConfig(self.defaultTimer, self.timers))
	def writeXmlTimer(self, timers):
		return ''.join(buildConfig(self.defaultTimer, timers))