diff MoinMoin/userprefs/oid.py @ 4428:ded09bdc3902

pre-1.9: request.form has qs args and post data, 1.9: .form only post data, .args only qs args, .values both
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Tue, 18 Nov 2008 22:03:57 +0100
parents eda647742453
children 173c67aff3d6
line wrap: on
line diff
--- a/MoinMoin/userprefs/oid.py	Tue Nov 18 21:29:25 2008 +0100
+++ b/MoinMoin/userprefs/oid.py	Tue Nov 18 22:03:57 2008 +0100
@@ -59,7 +59,7 @@
         _ = self.request.getText
         request = self.request
 
-        openid_id = request.form.get('openid_identifier', [''])[0]
+        openid_id = request.form.get('openid_identifier', '')
         if not openid_id:
             return 'error', _("No OpenID given.")
 
@@ -133,7 +133,7 @@
         _ = self._
         form = self.request.form
 
-        if form.has_key('oid.return'):
+        if self.request.values.has_key('oid.return'):
             return self._handle_oidreturn()
 
         if form.has_key('cancel'):