comparison MoinMoin/action/serveopenid.py @ 6103:500f68d3e2fd

remove our own usage of python_compatibility module
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Tue, 06 Sep 2016 01:00:25 +0200
parents 4ab3c578e44b
children
comparison
equal deleted inserted replaced
6102:df21062e294d 6103:500f68d3e2fd
6 6
7 @copyright: 2006, 2007, 2008 Johannes Berg <johannes@sipsolutions.net> 7 @copyright: 2006, 2007, 2008 Johannes Berg <johannes@sipsolutions.net>
8 @license: GNU GPL, see COPYING for details. 8 @license: GNU GPL, see COPYING for details.
9 """ 9 """
10 10
11 from MoinMoin.support.python_compatibility import rsplit
12 from MoinMoin.util.moinoid import MoinOpenIDStore, strbase64 11 from MoinMoin.util.moinoid import MoinOpenIDStore, strbase64
13 from MoinMoin import wikiutil 12 from MoinMoin import wikiutil
14 from openid.consumer.discover import OPENID_1_0_TYPE, \ 13 from openid.consumer.discover import OPENID_1_0_TYPE, \
15 OPENID_1_1_TYPE, OPENID_2_0_TYPE, OPENID_IDP_2_0_TYPE 14 OPENID_1_1_TYPE, OPENID_2_0_TYPE, OPENID_IDP_2_0_TYPE
16 from openid import sreg 15 from openid import sreg
115 request = self.request 114 request = self.request
116 cfg = request.cfg 115 cfg = request.cfg
117 116
118 # we can very well split on the last slash since usernames 117 # we can very well split on the last slash since usernames
119 # must not contain slashes 118 # must not contain slashes
120 base, received_name = rsplit(identity, '/', 1) 119 base, received_name = identity.rsplit('/', 1)
121 check_name = received_name 120 check_name = received_name
122 121
123 if received_name == '': 122 if received_name == '':
124 pg = wikiutil.getFrontPage(request) 123 pg = wikiutil.getFrontPage(request)
125 if pg: 124 if pg: