def getPreferencesXml(self): defaultXml = createXmlWithRoot("preferences", "XMLPath") fromFile = os.path.exists(self.path) return XML(self.path, defaultXml, fromFile)