[Pypi-checkins] r899 - in trunk/pypi: . templates

richard python-checkins at python.org
Wed Apr 6 04:43:36 CEST 2011


Author: richard
Date: Wed Apr  6 04:43:35 2011
New Revision: 899

Added:
   trunk/pypi/templates/about.pt
Modified:
   trunk/pypi/webui.py
Log:
add an About page

Added: trunk/pypi/templates/about.pt
==============================================================================
--- (empty file)
+++ trunk/pypi/templates/about.pt	Wed Apr  6 04:43:35 2011
@@ -0,0 +1,70 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+    xmlns:tal="http://xml.zope.org/namespaces/tal"
+    xmlns:metal="http://xml.zope.org/namespaces/metal"
+    metal:use-macro="standard_template/macros/page">
+<metal:fill fill-slot="body">
+
+
+<h1>About</h1>
+<p>
+Welcome to pypi.python.org, the Python community's software hosting service.
+</p>
+
+<p>
+Here you'll find a Python package to suit almost any need.
+</p>
+
+<p>
+The project was started in 2002 by Richard Jones,
+and has since grown to include the contributions of over a dozen Python
+programmers, <span tal:content="app/store/count_packages" /> packages
+and millions of downloads.
+</p>
+
+<p>
+The Python Package Index (PyPI) is hosted by the Python Software Foundation (who run the python.org systems) but the project is community-run. Currently there's two maintainers, Richard and Martin von Löwis.
+</p>
+
+<p>
+The index itself is written in Python but pre-dates modern Python web frameworks.
+
+</p>
+
+<p>
+To contact the admins, please 
+use the
+<a href="http://sourceforge.net/tracker/?group_id=66150&amp;atid=513504">Get help</a>
+or
+<a href="http://sourceforge.net/tracker/?group_id=66150&amp;atid=513503">Bug reports</a>
+links.
+</p>
+
+<p>To submit a package use
+"<a href="http://wiki.python.org/moin/CheeseShopTutorial">python setup.py upload</a>"
+and to use a package from this index either
+"<a href="http://pip.openplans.org/">pip</a> install <i>package</i>"
+or download, unpack and "python setup.py install" it.
+</p>
+
+<p>PyPI now provides a <a href="/mirrors">Mirror infrastructure</a> to allow
+users to continue downloading file even if pypi.python.org is unavailable.</p>
+
+<p>
+PyPI has also been known as The Python Cheese Shop (and indeed cheeseshop.python.org still works).
+</p>
+
+<p>And now for something completely different...</p>
+<p style="padding-left: 2em">
+<strong>Customer</strong>: Now then, some cheese please, my good man.
+<br />
+<strong>Owner</strong>: (lustily) Certainly, sir. What would you like?
+<br />
+<strong>Customer</strong>: Well, eh, how about a little red Leicester.
+<br />
+<strong>Owner</strong>: I'm, a-fraid we're fresh out of red Leicester, sir.
+</p>
+
+</metal:fill>
+</html>

Modified: trunk/pypi/webui.py
==============================================================================
--- trunk/pypi/webui.py	(original)
+++ trunk/pypi/webui.py	Wed Apr  6 04:43:35 2011
@@ -572,7 +572,7 @@
         password_reset role role_form list_classifiers login logout files
         file_upload show_md5 doc_upload claim openid openid_return dropid
         rate comment addcomment delcomment clear_auth addkey delkey lasthour
-        json gae_file'''.split():
+        json gae_file about'''.split():
             getattr(self, action)()
         else:
             #raise NotFound, 'Unknown action %s' % action
@@ -676,6 +676,9 @@
     def home(self, nav_current='home'):
         self.write_template('home.pt', title='PyPI')
 
+    def about(self, nav_current='home'):
+        self.write_template('about.pt', title='About PyPI')
+
     def rss(self):
         """Dump the last N days' updates as an RSS feed.
         """


More information about the Pypi-checkins mailing list