Mercurial > p > roundup > code
changeset 1332:e2d51ba4f6b1
key the templates cache off full path, not filename
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Wed, 11 Dec 2002 11:37:07 +0000 |
| parents | 3b953be32cdc |
| children | 80d27b7d6db5 |
| files | CHANGES.txt roundup/cgi/templating.py |
| diffstat | 2 files changed, 9 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/CHANGES.txt Wed Dec 11 03:29:04 2002 +0000 +++ b/CHANGES.txt Wed Dec 11 11:37:07 2002 +0000 @@ -1,7 +1,11 @@ This file contains the changes to the Roundup system over time. The entries are given with the most recent entry first. -2002-11-?? 0.5.3 +2003-01-?? 0.5.4 +- key the templates cache off full path, not filename + + +2002-12-11 0.5.3 - added mention of how to give users multiple Roles - mention needed trailing "/" in TRACKER_WEB - fixed upgrading doc to have CGI changes in the correct order
--- a/roundup/cgi/templating.py Wed Dec 11 03:29:04 2002 +0000 +++ b/roundup/cgi/templating.py Wed Dec 11 11:37:07 2002 +0000 @@ -84,13 +84,13 @@ extension, filename, generic) filename = generic - if self.templates.has_key(filename) and \ - stime < self.templates[filename].mtime: + if self.templates.has_key(src) and \ + stime < self.templates[src].mtime: # compiled template is up to date - return self.templates[filename] + return self.templates[src] # compile the template - self.templates[filename] = pt = RoundupPageTemplate() + self.templates[src] = pt = RoundupPageTemplate() pt.write(open(src).read()) pt.id = filename pt.mtime = time.time()
