[Checkins] SVN: Zope/trunk/inst/generate_index.py more docs

Andreas Jung andreas at andreas-jung.com
Wed Apr 22 13:31:22 EDT 2009


Log message for revision 99392:
  more docs
  

Changed:
  U   Zope/trunk/inst/generate_index.py

-=-
Modified: Zope/trunk/inst/generate_index.py
===================================================================
--- Zope/trunk/inst/generate_index.py	2009-04-22 17:22:16 UTC (rev 99391)
+++ Zope/trunk/inst/generate_index.py	2009-04-22 17:31:22 UTC (rev 99392)
@@ -25,17 +25,19 @@
     print >>fp, '<html><body>'
     lst = server.package_urls(package, version)
     if lst:
+        # package hosted on PyPI
         for d in lst:
             link = '<a href="%s">%s</a>' % (d['url'], d['filename'])
             print >>fp, link
             print >>fp, '<br/>'
     else:
+        # for externally hosted packages we need to rely on the 
+        # download_url metadata
         rel_data = server.release_data(package, version)
         download_url = rel_data['download_url']
         filename = os.path.basename(urlparse.urlparse(download_url)[2])
         link = '<a href="%s">%s</a>' % (download_url, filename)
         print >>fp, link
-        print >>fp, '<br/>'
 
     print >>fp, '</body></html>'
     fp.close()



More information about the Checkins mailing list