Mercurial > dandelion
changeset 456:b63630dc39b8
make upload editor accept preview arg
| author | Radomir Dopieralski <moindev@sheep.art.pl> |
|---|---|
| date | Sun, 03 Aug 2008 18:27:20 +0200 |
| parents | 67401ec815b9 |
| children | 7b399b476404 |
| files | dandelion/upload.py |
| diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/dandelion/upload.py Sun Aug 03 18:24:28 2008 +0200 +++ b/dandelion/upload.py Sun Aug 03 18:27:20 2008 +0200 @@ -18,7 +18,7 @@ content = upload_editor(wiki, page, author) return Response(content, mimetype="text/html", status=status) -def upload_editor(wiki, page, author): +def upload_editor(wiki, page, author=u"", preview=u""): stream = wiki.template("upload.html", page) return wiki.template("page.html", page, title=u"Upload %s" % page.title, content=stream)
