def __init__(self): BaseElement.__init__(self, 'weblinks')
def __init__(self, gamedata): name = gamedata['name'] BaseElement.__init__(self, 'game', **dict(name=name)) self.appendChild(FullNameElement(gamedata['fullname'])) self.appendChild(DosboxPathElement(gamedata['dosboxpath'])) self.appendChild(LaunchCmdElement(gamedata['launchcmd'])) self.appendChild(DescriptionElement(gamedata['description'])) weblink_section = WeblinkSectionElement() self.appendChild(weblink_section) # this if statement should be removed later # once it's determined to be unnecessary if gamedata.has_key('weblinks'): weblinks = gamedata['weblinks'] for site in weblinks: weblink_section.appendChild(WeblinkElement(site, weblinks[site]))
def __init__(self): BaseElement.__init__(self, 'works')
def __init__(self, tagname, **atts): BaseElement.__init__(self, tagname, **atts) self.title_element = TitleElement('') self.appendChild(self.title_element) self.desc_element = DescriptionElement('') self.appendChild(self.desc_element)
def __init__(self): BaseElement.__init__(self, 'pictures')
def __init__(self): BaseElement.__init__(self, 'appearances')
def __init__(self, date): BaseElement.__init__(self, 'appearance', date=str(date))