[Pypi-checkins] r971 - trunk/pypi
richard
python-checkins at python.org
Mon Sep 5 05:50:11 CEST 2011
Author: richard
Date: Mon Sep 5 05:50:11 2011
New Revision: 971
Modified:
trunk/pypi/webui.py
Log:
making the openid URLs nicer
Modified: trunk/pypi/webui.py
==============================================================================
--- trunk/pypi/webui.py (original)
+++ trunk/pypi/webui.py Mon Sep 5 05:50:11 2011
@@ -463,6 +463,14 @@
return self.mirrors()
if script_name == '/daytime':
return self.daytime()
+ if script_name == '/id':
+ action = 'openid_discovery'
+ elif script_name.startswith('/id/'):
+ # the username argument is ignored...
+ action = 'openid_user'
+ else:
+ action = ''
+
# see if the user has provided a username/password
auth = self.env.get('HTTP_CGI_AUTHORIZATION', '').strip()
if auth:
@@ -521,6 +529,9 @@
# now handle the request
path = self.env.get('PATH_INFO', '')
+ if action:
+ # we've already been set an action
+ pass
if self.form.has_key(':action'):
action = self.form[':action']
if isinstance(action, list):
More information about the Pypi-checkins
mailing list