summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2012-01-28 11:01:38 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2012-01-28 11:01:38 -0500
commit60c51699d4672c8c0d2fe34398572f089220a1db (patch)
tree4981297193d585d6f8d6922da557b4fef5b90091
parentaf13670b6433c6f53d321cf044aa59370fed380f (diff)
downloadmako-60c51699d4672c8c0d2fe34398572f089220a1db.tar.gz
- [bug] Added special compatibility for the 0.5.0
Cache() constructor, which was preventing file version checks and not allowing Mako 0.6 to recompile the module files.
-rw-r--r--CHANGES6
-rw-r--r--mako/cache.py6
2 files changed, 11 insertions, 1 deletions
diff --git a/CHANGES b/CHANGES
index aa7a83d..9a34681 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,9 @@
+0.6.1
+- [bug] Added special compatibility for the 0.5.0
+ Cache() constructor, which was preventing file
+ version checks and not allowing Mako 0.6 to
+ recompile the module files.
+
0.6.0
- [feature] Template caching has been converted into a plugin
diff --git a/mako/cache.py b/mako/cache.py
index 6688a56..959640e 100644
--- a/mako/cache.py
+++ b/mako/cache.py
@@ -60,7 +60,11 @@ class Cache(object):
"""
- def __init__(self, template):
+ def __init__(self, template, *args):
+ # check for a stale template calling the
+ # constructor
+ if isinstance(template, basestring) and args:
+ return
self.template = template
self.id = template.module.__name__
self.starttime = template.module._modified_time