[Pypi-checkins] r908 - trunk/pypi/templates

richard python-checkins at python.org
Fri Apr 8 08:18:32 CEST 2011


Author: richard
Date: Fri Apr  8 08:18:31 2011
New Revision: 908

Modified:
   trunk/pypi/templates/about.pt
   trunk/pypi/templates/home.pt
Log:
new home page format

Modified: trunk/pypi/templates/about.pt
==============================================================================
--- trunk/pypi/templates/about.pt	(original)
+++ trunk/pypi/templates/about.pt	Fri Apr  8 08:18:31 2011
@@ -37,13 +37,21 @@
 The index itself is written in Python but pre-dates modern Python web frameworks (<a href="http://wiki.python.org/moin/CheeseShopDev">more detail</a>).
 </p>
 
-<p>To submit a package use
+<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>
+Security: GPG and SSH ... XXX details?
+</p>
+
+<p>You can access the data in PyPI from a program using either the per-package
+JSON data or the XML-RPC interface.</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>
 

Modified: trunk/pypi/templates/home.pt
==============================================================================
--- trunk/pypi/templates/home.pt	(original)
+++ trunk/pypi/templates/home.pt	Fri Apr  8 08:18:31 2011
@@ -7,40 +7,67 @@
 <metal:fill fill-slot="body">
 <p>The Python Package Index is a repository of software for the Python
 programming language. There are currently
-<strong tal:content="app/store/count_packages" />
-packages here. To contact the PyPI admins, please 
-use the
+<strong tal:content="app/store/count_packages">12343</strong>
+packages here.
+<br>
+To contact the PyPI 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>
-
-          <form tal:attributes="action app/url_path" id="searchform"
-                method="get" name="searchform">
-            <input type="hidden" name=":action" value="search" />
-            <div id="search">
-              <input class="input-text" id="term" name="term" />
-              <input class="input-button" type="submit" name="submit"
-                     value="search" id="submit" />
-            </div>
-          </form>
-<ul>
-<li><a tal:attributes="href python:app.link_action('browse')">Browse the
-tree of packages</a></li>
-<li><a tal:attributes="href python:app.link_action('submit_form')">Submit package information</a> 
-(note that you must <a tal:attributes="href python:app.link_action('register_form')">
-register to submit</a>)</li>
-</ul>
+<br clear="right">
+
+<div id="document-navigation" style="width: 30%; float: left; display: inline;">
+<b>Get Packages</b>
+<p style="margin-top: 0px; margin-left: 2px; margin-bottom: 4px;">
+To use a package from this index either
+"<a href="http://www.pip-installer.org/en/latest/installing.html" class="vt-p">pip</a> install <i>package</i>"
+or download, unpack and "python setup.py install" it.
+<a href="http://pypi.python.org/pypi?%3Aaction=browse" class="vt-p">Browse the
+tree of all packages</a>. Or just search using the box above.
+</p>
+
+<!--
+  <form id="searchform" method="get" name="searchform" action="./files/page.html"
+        style="margin-top: 0px; margin-left: 2px; margin-bottom: 4px;">
+    <input type="hidden" name=":action" value="search">
+    <div id="search">
+      <input class="input-text" id="term" name="term" style="width: 70%">
+      <input class="input-button" type="submit" name="submit" value="search" id="submit">
+    </div>
+  </form>
+-->
+</div>
+
+<div id="document-navigation" style="width: 30%; float: left; display: inline;">
+<b>Package Authors</b>
+<p style="margin-top: 0px; margin-left: 2px; margin-bottom: 4px;">
+To submit a package use
+"<a href="http://wiki.python.org/moin/CheeseShopTutorial" class="vt-p">python setup.py upload</a>".
+The index also hosts documentation. You may also submit a package using
+<a href="/pypi/pypissh">SSH</a> or a
+<a href="http://pypi.python.org/pypi?%3Aaction=submit_form" class="vt-p">web form</a>.
+You must <a href="http://pypi.python.org/pypi?%3Aaction=register_form" class="vt-p">
+login to submit</a>.
+</p>
+</div>
+
+<div id="document-navigation" style="width: 30%; float: left; display: inline;">
+<b>Infrastructure</b>
+<p style="margin-top: 0px; margin-left: 2px; margin-bottom: 4px;">
+To interoperate with the index
+use the
+<a href="http://wiki.python.org/moin/PyPiJson">JSON</a>,
+<a href="http://wiki.python.org/moin/PyPiXmlRpc">XML-RPC</a> or
+<a href="http://www.python.org/dev/peps/pep-0301/">HTTP</a>
+interfaces.
+Use the <a href="http://pypi.python.org/mirrors" class="vt-p">mirror infrastructure</a> to to download even if the primary site is unavailable.
+</p>
+</div>
 
-<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>
+<br clear="both">
 
 <table class="list">
 <tr><th>Updated</th><th>Package</th><th>Description</th></tr>


More information about the Pypi-checkins mailing list