diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2012-01-28 11:01:38 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2012-01-28 11:01:38 -0500 |
commit | 60c51699d4672c8c0d2fe34398572f089220a1db (patch) | |
tree | 4981297193d585d6f8d6922da557b4fef5b90091 | |
parent | af13670b6433c6f53d321cf044aa59370fed380f (diff) | |
download | mako-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-- | CHANGES | 6 | ||||
-rw-r--r-- | mako/cache.py | 6 |
2 files changed, 11 insertions, 1 deletions
@@ -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 |