diff MoinMoin/PageGraphicalEditor.py @ 4235:a6c315ff8d66

Make more use of werkzeugs Href object for URL-generation in MoinMoin
author Florian Krupicka <florian.krupicka@googlemail.com>
date Sun, 20 Jul 2008 18:08:13 +0200
parents 85884c67228d
children 162002d5b148
line wrap: on
line diff
--- a/MoinMoin/PageGraphicalEditor.py	Sun Jul 20 16:43:12 2008 +0200
+++ b/MoinMoin/PageGraphicalEditor.py	Sun Jul 20 18:08:13 2008 +0200
@@ -221,9 +221,8 @@
             raw_body = _('Describe %s here.') % (self.page_name, )
 
         # send form
-        request.write('<form id="editor" method="post" action="%s/%s#preview">' % (
-            request.script_root,
-            wikiutil.quoteWikinameURL(self.page_name),
+        request.write('<form id="editor" method="post" action="%s#preview">' % (
+                request.href(self.page_name)
             ))
 
         # yet another weird workaround for broken IE6 (it expands the text