Exemple #1
0
class RssHandler(tornado.web.RequestHandler):
	def initialize(self):
		self.a = ArticleProvider()

	def get(self):
		self.set_header("Content-Type", "application/rss+xml")
		self.a.atom_dates()
		self.render("templates/index.xml", title="unsure.org blog feed", url="http://unsure.org", author="Matthew Finlayson", email="*****@*****.**", items=self.a.parsed_list)