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