[Pypi-checkins] r909 - in trunk/pypi: . templates
richard
python-checkins at python.org
Fri Apr 8 08:29:44 CEST 2011
Author: richard
Date: Fri Apr 8 08:29:43 2011
New Revision: 909
Modified:
trunk/pypi/templates/home.pt
trunk/pypi/webui.py
Log:
fix XML; use clearer title; disabled content-disposition as it seems nicer without these days
Modified: trunk/pypi/templates/home.pt
==============================================================================
--- trunk/pypi/templates/home.pt (original)
+++ trunk/pypi/templates/home.pt Fri Apr 8 08:29:43 2011
@@ -9,7 +9,7 @@
programming language. There are currently
<strong tal:content="app/store/count_packages">12343</strong>
packages here.
-<br>
+<br />
To contact the PyPI admins, please use the
<a href="http://sourceforge.net/tracker/?group_id=66150&atid=513504">Get help</a>
or
@@ -17,7 +17,7 @@
links.
</p>
-<br clear="right">
+<br clear="right" />
<div id="document-navigation" style="width: 30%; float: left; display: inline;">
<b>Get Packages</b>
@@ -67,7 +67,7 @@
</p>
</div>
-<br clear="both">
+<br clear="both" />
<table class="list">
<tr><th>Updated</th><th>Package</th><th>Description</th></tr>
Modified: trunk/pypi/webui.py
==============================================================================
--- trunk/pypi/webui.py (original)
+++ trunk/pypi/webui.py Fri Apr 8 08:29:43 2011
@@ -664,7 +664,7 @@
self.wfile.write(sig)
def home(self, nav_current='home'):
- self.write_template('home.pt', title='PyPI')
+ self.write_template('home.pt', title='PyPI - the Python Package Index')
def about(self, nav_current='home'):
self.write_template('about.pt', title='About PyPI')
@@ -1096,8 +1096,8 @@
self.handler.set_content_type('application/json; charset="UTF-8"')
filename = '%s-%s.json'%(name.encode('ascii', 'replace'),
version.encode('ascii', 'replace'))
- self.handler.send_header('Content-Disposition',
- 'attachment; filename=%s'%filename)
+# self.handler.send_header('Content-Disposition',
+# 'attachment; filename=%s'%filename)
self.handler.end_headers()
# write the JSONP extra crap if necessary
s = json.dumps(d)
More information about the Pypi-checkins
mailing list