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