From 395ea55e4661290309a1c6525ef2ada17ce49b72 Mon Sep 17 00:00:00 2001 From: richard Date: Wed, 11 Dec 2002 11:37:07 +0000 Subject: [PATCH] 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 --- CHANGES.txt | 6 +++++- roundup/cgi/templating.py | 8 ++++---- 2 files changed, 9 insertions(+), 5 deletions(-) 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() -- 2.30.2