changeset 75:6c4a4b8d6729

web: build logs have extension .txt now to improve their mime type
author Bernhard Herzog <bh@intevation.de>
date Tue, 17 Apr 2007 11:52:28 +0200
parents 43e6bdba84e2
children 7c55fb368d0b
files treepkg/web-status.html treepkg/web.py
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/treepkg/web-status.html	Tue Apr 17 11:43:41 2007 +0200
+++ b/treepkg/web-status.html	Tue Apr 17 11:52:28 2007 +0200
@@ -33,7 +33,7 @@
 		  Start: ${col.status.start}<br/>
 		  Stop: ${col.status.stop}<br/>
 		  <py:if test="col.revision.has_build_log">
-		    <a href="${col.name}/${col.revno}/build.log">build_log</a>
+		    <a href="${col.name}/${col.revno}/build_log.txt">build log</a>
 		  </py:if>
 		</td>
 	      </py:when>
--- a/treepkg/web.py	Tue Apr 17 11:43:41 2007 +0200
+++ b/treepkg/web.py	Tue Apr 17 11:52:28 2007 +0200
@@ -44,9 +44,9 @@
 
     @expose
     def default(self, *rest):
-        """Handles requests for .../pkg/revno/build.log"""
+        """Handles requests for .../pkg/revno/build_log.txt"""
         filename = None
-        if len(rest) == 3 and rest[2] == "build.log":
+        if len(rest) == 3 and rest[2] == "build_log.txt":
             filename = self.build_log_filename(*rest[:2])
         if filename is not None:
             return cptools.serveFile(filename, contentType="text/plain")
@@ -75,7 +75,7 @@
                         os.mkdir(trackdir)
                     os.mkdir(revdir)
                     os.symlink(revision.build_log,
-                               os.path.join(revdir, "build.log"))
+                               os.path.join(revdir, "build_log.txt"))
 
 
 
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)