Skip to content

Commit e5cc6b8

Browse files
author
Richard Jones
committed
key the templates cache off full path, not filename
1 parent 858fde4 commit e5cc6b8

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

CHANGES.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
This file contains the changes to the Roundup system over time. The entries
22
are given with the most recent entry first.
33

4-
2002-11-?? 0.5.3
4+
2003-01-?? 0.5.4
5+
- key the templates cache off full path, not filename
6+
7+
8+
2002-12-11 0.5.3
59
- added mention of how to give users multiple Roles
610
- mention needed trailing "/" in TRACKER_WEB
711
- fixed upgrading doc to have CGI changes in the correct order

roundup/cgi/templating.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,13 @@ def get(self, name, extension):
8484
extension, filename, generic)
8585
filename = generic
8686

87-
if self.templates.has_key(filename) and \
88-
stime < self.templates[filename].mtime:
87+
if self.templates.has_key(src) and \
88+
stime < self.templates[src].mtime:
8989
# compiled template is up to date
90-
return self.templates[filename]
90+
return self.templates[src]
9191

9292
# compile the template
93-
self.templates[filename] = pt = RoundupPageTemplate()
93+
self.templates[src] = pt = RoundupPageTemplate()
9494
pt.write(open(src).read())
9595
pt.id = filename
9696
pt.mtime = time.time()

0 commit comments

Comments
 (0)