4 # A plugin to XMLWriter to output OPML
6 # This is apparently the most horrific abuse of XML known to man.
14 def __init__(self, planet):
19 output += '<opml version="1.1">\n'
21 output += ' <title>Planet UCC</title>\n'
22 date = time.strftime("%a, %d %b %Y %H:%M:%S +0800", time.localtime())
23 output += ' <dateCreated>%s</dateCreated>\n' % date
24 output += ' <dateModified>%s</dateModified>\n' % date
25 output += ' <ownerName>Planetmaster</ownerName>\n'
27 output += ' </head>\n'
29 for blog in self.parent.blogs:
30 output += ' <outline text="%s" xmlURL="%s" />\n' % (blog.blogName, blog.feedURL)
31 output += ' </body>\n'