changeset 5630:d00cc36e37b9

openidrp: fix undefined _ (gettext)
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Fri, 19 Mar 2010 20:01:08 +0100
parents 32a0bf3c4e43
children b82b3fef4c77
files MoinMoin/auth/openidrp.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/auth/openidrp.py	Sat Mar 13 22:26:20 2010 +0100
+++ b/MoinMoin/auth/openidrp.py	Fri Mar 19 20:01:08 2010 +0100
@@ -181,10 +181,10 @@
             return CancelLogin(_('OpenID failure.'))
 
     def _handle_name_continuation(self, request):
+        _ = request.getText
         if not 'openid.id' in request.session:
             return CancelLogin(_('No OpenID found in session.'))
 
-        _ = request.getText
         newname = request.form.get('username', '')
         if not newname:
             return MultistageFormLogin(self._get_account_name)