changeset 5124:e523dc1c4758

openidrp / botbouncer: CancelLogin() requires 1 param, giving None
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 05 Sep 2009 19:54:33 +0200
parents df2301035a3c
children b8d919e435d5
files MoinMoin/auth/botbouncer.py MoinMoin/auth/openidrp.py
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/auth/botbouncer.py	Sat Sep 05 15:52:28 2009 +0200
+++ b/MoinMoin/auth/botbouncer.py	Sat Sep 05 19:54:33 2009 +0200
@@ -20,7 +20,7 @@
         if kw.get('multistage'):
             uid = request.session.get('botbouncer.uid', None)
             if not uid:
-                return CancelLogin()
+                return CancelLogin(None)
             openid = request.session['botbouncer.id']
             del request.session['botbouncer.id']
             del request.session['botbouncer.uid']
--- a/MoinMoin/auth/openidrp.py	Sat Sep 05 15:52:28 2009 +0200
+++ b/MoinMoin/auth/openidrp.py	Sat Sep 05 19:54:33 2009 +0200
@@ -195,7 +195,7 @@
 
     def _handle_associate_continuation(self, request):
         if not 'openid.id' in request.session:
-            return CancelLogin()
+            return CancelLogin(None)
 
         _ = request.getText
         username = request.form.get('username', [''])[0]
@@ -221,7 +221,7 @@
             return self._handle_name_continuation(request)
         elif oidstage == '3':
             return self._handle_associate_continuation(request)
-        return CancelLogin()
+        return CancelLogin(None)
 
     def _openid_form(self, request, form, oidhtml):
         _ = request.getText