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]))
Esempio n. 3
0
 def __init__(self):
     BaseElement.__init__(self, 'works')
Esempio n. 4
0
 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)
Esempio n. 5
0
 def __init__(self):
     BaseElement.__init__(self, 'pictures')
Esempio n. 6
0
 def __init__(self):
     BaseElement.__init__(self, 'appearances')
Esempio n. 7
0
 def __init__(self, date):
     BaseElement.__init__(self, 'appearance', date=str(date))