diff MoinMoin/userprefs/oid.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 126559845d4b
children 162002d5b148
line wrap: on
line diff
--- a/MoinMoin/userprefs/oid.py	Sun Jul 20 16:43:12 2008 +0200
+++ b/MoinMoin/userprefs/oid.py	Sun Jul 20 18:08:13 2008 +0200
@@ -150,9 +150,7 @@
         return
 
     def _make_form(self):
-        sn = self.request.script_root
-        pi = self.request.path
-        action = u"%s%s" % (sn, pi)
+        action = "%s%s" % (self.request.script_root, self.request.path)
         _form = html.FORM(action=action)
         _form.append(html.INPUT(type="hidden", name="action", value="userprefs"))
         _form.append(html.INPUT(type="hidden", name="handler", value="oid"))