diff MoinMoin/userprefs/oid.py @ 4565:68d29223dfa9

page.url() should preferably get a query dict, not a query string. It calls wikiutil.makeQueryString() internally.
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Tue, 10 Feb 2009 13:08:03 +0100
parents 776cc7f6f6c6
children 2eaf4b42b400 5359bfdf91ba
line wrap: on
line diff
--- a/MoinMoin/userprefs/oid.py	Sun Feb 08 20:37:56 2009 +0100
+++ b/MoinMoin/userprefs/oid.py	Tue Feb 10 13:08:03 2009 +0100
@@ -79,9 +79,9 @@
             if oidreq is None:
                 return 'error', _("No OpenID given.") # ??
 
-            qstr = wikiutil.makeQueryString({'action': 'userprefs',
-                                             'handler': 'oid',
-                                             'oid.return': '1'})
+            qstr = {'action': 'userprefs',
+                    'handler': 'oid',
+                    'oid.return': '1'}
             return_to = request.getQualifiedURL(request.page.url(request, qstr))
             trust_root = request.getBaseURL()
             if oidreq.shouldSendRedirect():
@@ -102,9 +102,9 @@
         query = {}
         for key in request.form:
             query[key] = request.form[key][0]
-        qstr = wikiutil.makeQueryString({'action': 'userprefs',
-                                         'handler': 'oid',
-                                         'oid.return': '1'})
+        qstr = {'action': 'userprefs',
+                'handler': 'oid',
+                'oid.return': '1'}
         return_to = request.getQualifiedURL(request.page.url(request, qstr))
         info = oidconsumer.complete(query, return_to)
         if info.status == consumer.FAILURE: