changeset 1427:37e712e77a99

trackers' templates directory can contain subdirectories with static files
author Andrey Lebedev <kedder@users.sourceforge.net>
date Thu, 13 Feb 2003 12:10:34 +0000
parents b79b1823af7b
children 136ef2d0e6c3
files CHANGES.txt roundup/cgi/client.py
diffstat 2 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/CHANGES.txt	Thu Feb 13 11:23:46 2003 +0000
+++ b/CHANGES.txt	Thu Feb 13 12:10:34 2003 +0000
@@ -52,6 +52,8 @@
 - implemented extension to form parsing to allow editing of multiple items
   and creation of multiple items (but only one per class)
 - the colon ":" special form variable designator may now be any of : + @
+- trackers' templates directory can contain subdirectories with static files
+  (e.g. images). They are accessible naturally: _file/images/img.gif
 
 
 2003-??-?? 0.5.6
--- a/roundup/cgi/client.py	Thu Feb 13 11:23:46 2003 +0000
+++ b/roundup/cgi/client.py	Thu Feb 13 12:10:34 2003 +0000
@@ -1,4 +1,4 @@
-# $Id: client.py,v 1.83 2003-02-13 11:23:46 richard Exp $
+# $Id: client.py,v 1.84 2003-02-13 12:10:34 kedder Exp $
 
 __doc__ = """
 WWW request handler (also used in the stand-alone server).
@@ -350,7 +350,7 @@
                 self.template = ''
             return
         elif path[0] == '_file':
-            raise SendStaticFile, path[1]
+            raise SendStaticFile, os.path.join(*path[1:])
         else:
             self.classname = path[0]
             if len(path) > 1:

Roundup Issue Tracker: http://roundup-tracker.org/