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

richard python-checkins at python.org
Sat Jul 24 17:24:24 CEST 2010


Author: richard
Date: Sat Jul 24 17:24:24 2010
New Revision: 806

Modified:
   trunk/pypi/templates/display.pt
   trunk/pypi/webui.py
Log:
better

Modified: trunk/pypi/templates/display.pt
==============================================================================
--- trunk/pypi/templates/display.pt	(original)
+++ trunk/pypi/templates/display.pt	Sat Jul 24 17:24:24 2010
@@ -98,7 +98,7 @@
 
  <li tal:condition="data/docs | nothing">
   <strong>Documentation:</strong>
-  <a tal:attributes="href data/docs" tal:content="data/docs" />
+  <a tal:attributes="href data/docs" tal:content="string:${data/name} documentation" />
  </li>
 
 <!-- The <th> elements below are a terrible terrible hack for setuptools -->

Modified: trunk/pypi/webui.py
==============================================================================
--- trunk/pypi/webui.py	(original)
+++ trunk/pypi/webui.py	Sat Jul 24 17:24:24 2010
@@ -1359,7 +1359,7 @@
         docs = ''
         for sub in [[], ['html']]:
             path = [self.config.database_docs_dir, name] + sub + ['index.html']
-            if os.path.exists(os.path.join(path)):
+            if os.path.exists(os.path.join(*path)):
                 docs = '/'.join(['http://packages.python.org', name] + sub)
 
         self.write_template('display.pt',


More information about the Pypi-checkins mailing list