From python-checkins at python.org Wed Mar 2 22:54:37 2011 From: python-checkins at python.org (martin.von.loewis) Date: Wed, 2 Mar 2011 22:54:37 +0100 (CET) Subject: [Pypi-checkins] r893 - trunk/pypi/templates Message-ID: <20110302215437.03C73EE988@mail.python.org> Author: martin.von.loewis Date: Wed Mar 2 22:54:36 2011 New Revision: 893 Modified: trunk/pypi/templates/standard_template.pt Log: Follow python.org in pollenation link. Modified: trunk/pypi/templates/standard_template.pt ============================================================================== --- trunk/pypi/templates/standard_template.pt (original) +++ trunk/pypi/templates/standard_template.pt Wed Mar 2 22:54:36 2011 @@ -199,7 +199,7 @@
- Downloads ↓ +
+ Downloads ↓
+
From python-checkins at python.org Wed Mar 16 13:22:26 2011
From: python-checkins at python.org (martin.von.loewis)
Date: Wed, 16 Mar 2011 13:22:26 +0100 (CET)
Subject: [Pypi-checkins] r896 - trunk/pypi
Message-ID: <20110316122226.54BE1EE984@mail.python.org>
Author: martin.von.loewis
Date: Wed Mar 16 13:22:26 2011
New Revision: 896
Modified:
trunk/pypi/standalone.py
Log:
Ignore authorization headers if we have a ssh user.
Modified: trunk/pypi/standalone.py
==============================================================================
--- trunk/pypi/standalone.py (original)
+++ trunk/pypi/standalone.py Wed Mar 16 13:22:26 2011
@@ -42,15 +42,18 @@
if host != self.client_address[0]:
env['REMOTE_HOST'] = host
env['REMOTE_ADDR'] = self.client_address[0]
- authorization = self.headers.getheader("authorization")
+ if self.ssh_user:
+ # ignore authorization headers if this is a SSH client
+ authorization = None
+ env['SSH_USER'] = self.ssh_user
+ else:
+ authorization = self.headers.getheader("authorization")
if authorization:
env['HTTP_CGI_AUTHORIZATION'] = authorization
authorization = authorization.split()
if len(authorization) == 2:
import base64, binascii
env['AUTH_TYPE'] = authorization[0]
- if self.ssh_user:
- env['SSH_USER'] = self.ssh_user
if self.headers.typeheader is None:
env['CONTENT_TYPE'] = self.headers.type
else:
From python-checkins at python.org Sun Mar 27 20:36:05 2011
From: python-checkins at python.org (martin.von.loewis)
Date: Sun, 27 Mar 2011 20:36:05 +0200 (CEST)
Subject: [Pypi-checkins] r897 - trunk/pypi/templates
Message-ID: <3PyRs11sq7z7LlV@mail.python.org>
Author: martin.von.loewis
Date: Sun Mar 27 20:36:04 2011
New Revision: 897
Modified:
trunk/pypi/templates/mirrors.pt
trunk/pypi/templates/register.pt
trunk/pypi/templates/standard_template.pt
Log:
Patches from anatoly techtonik: fix typos and markup glitches.
Modified: trunk/pypi/templates/mirrors.pt
==============================================================================
--- trunk/pypi/templates/mirrors.pt (original)
+++ trunk/pypi/templates/mirrors.pt Sun Mar 27 20:36:04 2011
@@ -5,9 +5,9 @@
metal:use-macro="standard_template/macros/page">
The PyPI repository provides alternative locations that stores the packages.
+ The PyPI repository provides alternative locations that store the packages.
This service is primarily intended to be used by automated download tools
- (such as setuptools or pip); ask your tool vendor to make use of this infratructure.
+ (such as setuptools or pip); ask your tool vendor to make use of this infrastructure.
You can also manually point these tools to mirrors, or use them in the
web browser, by using one of these host names instead of pypi.python.org: Claim OpenID, either from one of these providers: