Code

key the templates cache off full path, not filename
authorrichard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2>
Wed, 11 Dec 2002 11:37:07 +0000 (11:37 +0000)
committerrichard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2>
Wed, 11 Dec 2002 11:37:07 +0000 (11:37 +0000)
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1407 57a73879-2fb5-44c3-a270-3262357dd7e2

CHANGES.txt
roundup/cgi/templating.py

index ad8831abfcb430b7d18addbdd9ad8756b9c272ba..4e63d6db1bced986108a028e6d1ccb43604752f4 100644 (file)
@@ -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
index 3afd9b595ee9238bc681971ea14a274057f50807..f87cdb696ad2456c9b264ea934d0c3d595d97d5b 100644 (file)
@@ -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()