From: richard Date: Wed, 11 Dec 2002 11:37:07 +0000 (+0000) Subject: key the templates cache off full path, not filename X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=395ea55e4661290309a1c6525ef2ada17ce49b72;p=roundup.git key the templates cache off full path, not filename git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1407 57a73879-2fb5-44c3-a270-3262357dd7e2 --- diff --git a/CHANGES.txt b/CHANGES.txt index ad8831a..4e63d6d 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -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 diff --git a/roundup/cgi/templating.py b/roundup/cgi/templating.py index 3afd9b5..f87cdb6 100644 --- a/roundup/cgi/templating.py +++ b/roundup/cgi/templating.py @@ -84,13 +84,13 @@ class Templates: 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()