changeset 757:c9381c5ce219

frontend.views.content_item: simplified
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Tue, 23 Aug 2011 10:00:17 +0200
parents ab4083ea79ed
children 6d0ab44672d7
files MoinMoin/apps/frontend/views.py
diffstat 1 files changed, 4 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/apps/frontend/views.py	Tue Aug 23 09:50:39 2011 +0200
+++ b/MoinMoin/apps/frontend/views.py	Tue Aug 23 10:00:17 2011 +0200
@@ -297,11 +297,10 @@
         item = Item.create(item_name, rev_no=rev)
     except AccessDeniedError:
         abort(403)
-    content = render_template('content.html',
-                              item_name=item.name,
-                              data_rendered=Markup(item._render_data()),
-                             )
-    return Response(content, 200)
+    return render_template('content.html',
+                           item_name=item.name,
+                           data_rendered=Markup(item._render_data()),
+                           )
 
 @frontend.route('/+get/<int:rev>/<itemname:item_name>')
 @frontend.route('/+get/<itemname:item_name>', defaults=dict(rev=-1))