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

richard python-checkins at python.org
Mon Dec 19 06:48:28 CET 2011


Author: richard
Date: Mon Dec 19 06:48:28 2011
New Revision: 1001

Modified:
   trunk/pypi/templates/standard_template.pt
   trunk/pypi/webui.py
Log:
fix URLs so clients don't have to redirect; allow packages_rss (??)

Modified: trunk/pypi/templates/standard_template.pt
==============================================================================
--- trunk/pypi/templates/standard_template.pt	(original)
+++ trunk/pypi/templates/standard_template.pt	Mon Dec 19 06:48:28 2011
@@ -11,8 +11,8 @@
       <title tal:content="string:${data/title} : Python Package Index" />
       <meta tal:attributes="content data/keywords" />
       <meta tal:attributes="content data/description" />
-       <link rel="alternate" type="application/rss+xml" title="RSS: 40 latest updates" href="http://www.python.org/pypi?:action=rss"/>
-       <link rel="alternate" type="application/rss+xml" title="RSS: 40 newest packages" href="http://www.python.org/pypi?:action=packages_rss"/>
+       <link rel="alternate" type="application/rss+xml" title="RSS: 40 latest updates" href="http://pypi.python.org/pypi?:action=rss"/>
+       <link rel="alternate" type="application/rss+xml" title="RSS: 40 newest packages" href="http://pypi.python.org/pypi?:action=packages_rss"/>
        <link media="screen" tal:attributes="href string:${app/config/pydotorg}styles/screen-switcher-default.css" type="text/css" id="screen-switcher-stylesheet" rel="stylesheet" />
        <link media="screen" tal:attributes="href string:${app/config/pydotorg}styles/netscape4.css" type="text/css" rel="stylesheet" />
        <link media="print" tal:attributes="href string:${app/config/pydotorg}styles/print.css" type="text/css" rel="stylesheet" />

Modified: trunk/pypi/webui.py
==============================================================================
--- trunk/pypi/webui.py	(original)
+++ trunk/pypi/webui.py	Mon Dec 19 06:48:28 2011
@@ -567,7 +567,7 @@
         password_reset role role_form list_classifiers login logout files
         file_upload show_md5 doc_upload claim openid openid_return dropid
         clear_auth addkey delkey lasthour json gae_file about delete_user
-        rss_regen openid_endpoint openid_decide_post'''.split():
+        rss_regen openid_endpoint openid_decide_post packages_rss'''.split():
             getattr(self, action)()
         else:
             #raise NotFound, 'Unknown action %s' % action


More information about the Pypi-checkins mailing list