Esempio n. 1
0
 def build_guide_xml(self):
     guideout = []
     guideout.append('<guide>\n')
     for (type, title, href) in self.guide:
         href = quoteurl(href)
         guideout.append('<reference type="%s" href="%s" title="%s"/>\n' % (type, href, title))
     guideout.append('</guide>\n')
     return "".join(guideout)
Esempio n. 2
0
 def build_guide_xml(self):
     guideout = []
     guideout.append('<guide>\n')
     for (type, title, href) in self.guide:
         href = quoteurl(href)
         guideout.append('<reference type="%s" href="%s" title="%s"/>\n' %
                         (type, href, title))
     guideout.append('</guide>\n')
     return "".join(guideout)
Esempio n. 3
0
 def build_manifest_xml(self):
     manout = []
     manout.append('<manifest>\n')
     for id in sorted(self.id_to_mime.keys()):
         href = quoteurl(self.id_to_href[id])
         mime = self.id_to_mime[id]
         manout.append('<item id="%s" href="%s" media-type="%s" />\n' % (id, href, mime))
     manout.append('</manifest>\n')
     return "".join(manout)
Esempio n. 4
0
 def build_manifest_xml(self):
     manout = []
     manout.append('<manifest>\n')
     for id in sorted(self.id_to_mime.keys()):
         href = quoteurl(self.id_to_href[id])
         mime = self.id_to_mime[id]
         manout.append('<item id="%s" href="%s" media-type="%s" />\n' %
                       (id, href, mime))
     manout.append('</manifest>\n')
     return "".join(manout)