bodhi/controllers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit a2c14e58c9ffc3db88233746962dad5f96f13c38 Author: Luke Macken lmacken@redhat.com Date: Thu Aug 26 18:17:48 2010 -0400
Return the update as JSON instead of a string when using the comment API (#394)
diff --git a/bodhi/controllers.py b/bodhi/controllers.py index 75f24a7..5bc44ac 100644 --- a/bodhi/controllers.py +++ b/bodhi/controllers.py @@ -1216,7 +1216,7 @@ class Root(controllers.RootController): break_long_words=False).fill(text) update.comment(text, karma) if request_format() == 'json': - return dict(update=unicode(update)) + return dict(update=update.__json__()) raise redirect(update.get_url()) except SQLObjectNotFound: flash_log("Update %s does not exist" % title)