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