]> git.ipfire.org Git - people/shoehn/ipfire.org.git/blobdiff - webapp/handlers_rss.py
netboot: Allow booting multiple architectures
[people/shoehn/ipfire.org.git] / webapp / handlers_rss.py
index 21ae4acb70a46b89e44426eacc40323461385b8f..e3755fdfab04a479cdc409141ae8a9e912be2519 100644 (file)
@@ -2,7 +2,6 @@
 
 import logging
 import textile
-import tornado.database
 
 import backend
 
@@ -63,12 +62,12 @@ class RSSNewsHandler(RSSHandler):
                        n.author = self.get_account(n.author_id)
 
                        # Render text
-                       n.text = textile.textile(n.text)
+                       n.text = textile.textile(n.text.decode("utf-8"))
 
-                       item = tornado.database.Row({
+                       item = backend.database.Row({
                                "title"     : n.title,
                                "author"    : n.author,
-                               "published" : n.date,
+                               "published" : n.published,
                                "url"       : "http://www.ipfire.org/news/%s" % n.slug,
                                "markup"    : n.text,
                        })