comparison MoinMoin/auth/openidrp.py @ 3123:5cb80bd604b4

refactored _() getText calls to match new api
author Radomir Dopieralski <moindev@sheep.art.pl>
date Wed, 27 Feb 2008 00:28:28 +0100
parents 059054049961
children f272fc54b68d
comparison
equal deleted inserted replaced
3122:a1322262398a 3123:5cb80bd604b4
90 query[key] = request.form[key][0] 90 query[key] = request.form[key][0]
91 return_to = get_multistage_continuation_url(request, self.name, 91 return_to = get_multistage_continuation_url(request, self.name,
92 {'oidstage': '1'}) 92 {'oidstage': '1'})
93 info = oidconsumer.complete(query, return_to=return_to) 93 info = oidconsumer.complete(query, return_to=return_to)
94 if info.status == consumer.FAILURE: 94 if info.status == consumer.FAILURE:
95 return CancelLogin(_('OpenID error: %s.') % info.message) 95 return CancelLogin(_('OpenID error: %s.') % info.message, percent=True)
96 elif info.status == consumer.CANCEL: 96 elif info.status == consumer.CANCEL:
97 return CancelLogin(_('Verification canceled.')) 97 return CancelLogin(_('Verification canceled.'))
98 elif info.status == consumer.SUCCESS: 98 elif info.status == consumer.SUCCESS:
99 # try to find user object 99 # try to find user object
100 uid = user.getUserIdByOpenId(request, info.identity_url) 100 uid = user.getUserIdByOpenId(request, info.identity_url)