From: kedder Date: Thu, 13 Feb 2003 12:10:34 +0000 (+0000) Subject: trackers' templates directory can contain subdirectories with static files X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9feee21c6409bcc7e488e0f54c54a6ad71bfe538;p=roundup.git trackers' templates directory can contain subdirectories with static files git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1505 57a73879-2fb5-44c3-a270-3262357dd7e2 --- diff --git a/CHANGES.txt b/CHANGES.txt index cc816c3..dd58c3d 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -52,6 +52,8 @@ are given with the most recent entry first. - 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 diff --git a/roundup/cgi/client.py b/roundup/cgi/client.py index c9d5192..ac8d9d4 100644 --- a/roundup/cgi/client.py +++ b/roundup/cgi/client.py @@ -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 @@ class Client: 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: