[Erp5-report] r13678 - /erp5/trunk/products/ERP5/Tool/ContributionOpener.py

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Mar 26 20:38:40 CEST 2007


Author: jp
Date: Mon Mar 26 20:38:39 2007
New Revision: 13678

URL: http://svn.erp5.org?rev=13678&view=rev
Log:
Added base support

Modified:
    erp5/trunk/products/ERP5/Tool/ContributionOpener.py

Modified: erp5/trunk/products/ERP5/Tool/ContributionOpener.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Tool/ContributionOpener.py?rev=13678&r1=13677&r2=13678&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Tool/ContributionOpener.py (original)
+++ erp5/trunk/products/ERP5/Tool/ContributionOpener.py Mon Mar 26 20:38:39 2007
@@ -54,8 +54,10 @@
             try:
               file_list = dircache.listdir(localfile)
               s = StringIO()
+              s.write('<html><head><base href="%s"/></head><body>' % 'file:' + file)
               for f in file_list:
                 s.write('<p><a href="%s/">%s</a></p>\n' % (urllib.quote(f), f))
+              s.write('</body></html>')
               s.seek(0)
               headers = mimetools.Message(StringIO(
                   'Content-type: %s\nContent-length: %d\nLast-modified: %s\n' %




More information about the Erp5-report mailing list