import logging
import textile
-import tornado.database
import backend
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,
})