Permalink
Browse files

make it possible to get a single entry as atom/json

  • Loading branch information...
1 parent 71064bf commit f92be05322132b918611f6ec2ce31cc581bc563d Benjamin Golub committed Jul 20, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 blog.py
View
@@ -271,7 +271,7 @@ def get(self, slug):
entry = db.Query(Entry).filter("slug =", slug).get()
if not entry:
raise tornado.web.HTTPError(404)
- self.render("entry.html", entry=entry)
+ self.render("entry.html", entry=entry, entries=[entry])
def head(self, slug):
entry = db.Query(Entry).filter("slug =", slug).get()

0 comments on commit f92be05

Please sign in to comment.