changeset 460:cddf83bb09f6

comment was placed in wrong place
author Radomir Dopieralski <moindev@sheep.art.pl>
date Sun, 03 Aug 2008 18:32:39 +0200
parents cdd098067a5e
children 09cc3c94b281
files dandelion/upload.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/dandelion/upload.py	Sun Aug 03 18:31:16 2008 +0200
+++ b/dandelion/upload.py	Sun Aug 03 18:32:39 2008 +0200
@@ -18,8 +18,8 @@
     content = upload_editor(wiki, page, author)
     return Response(content, mimetype="text/html", status=status)
 
-def upload_editor(wiki, page, author=u"", preview=u"", comment=page.comment):
-    stream = wiki.template_stream("upload.html", page, author=author, preview=None)
+def upload_editor(wiki, page, author=u"", preview=u""):
+    stream = wiki.template_stream("upload.html", page, author=author, preview=None, comment=page.comment)
     return wiki.template("page.html", page, title=u"Upload %s" % page.title, content=stream)
 
 def save(wiki, request, page, author):