Skip to content

Commit 7b146dc

Browse files
author
Andrey Lebedev
committed
trackers' templates directory can contain subdirectories with static files
1 parent a797a32 commit 7b146dc

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGES.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ are given with the most recent entry first.
5252
- implemented extension to form parsing to allow editing of multiple items
5353
and creation of multiple items (but only one per class)
5454
- the colon ":" special form variable designator may now be any of : + @
55+
- trackers' templates directory can contain subdirectories with static files
56+
(e.g. images). They are accessible naturally: _file/images/img.gif
5557

5658

5759
2003-??-?? 0.5.6

roundup/cgi/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Id: client.py,v 1.83 2003-02-13 11:23:46 richard Exp $
1+
# $Id: client.py,v 1.84 2003-02-13 12:10:34 kedder Exp $
22

33
__doc__ = """
44
WWW request handler (also used in the stand-alone server).
@@ -350,7 +350,7 @@ def determine_context(self, dre=re.compile(r'([^\d]+)(\d+)')):
350350
self.template = ''
351351
return
352352
elif path[0] == '_file':
353-
raise SendStaticFile, path[1]
353+
raise SendStaticFile, os.path.join(*path[1:])
354354
else:
355355
self.classname = path[0]
356356
if len(path) > 1:

0 commit comments

Comments
 (0)