def appendApplicationFromXML(self, xml): a = Application() a.setNameFromXML(xml) self.applications[a.name_long] = a return a