aboutsummaryrefslogtreecommitdiffstats
path: root/lib/mako/codegen.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2007-01-02 07:33:25 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2007-01-02 07:33:25 +0000
commitfa9906eb1bf1b14a76238d1c47dab3c1558fdd0a (patch)
treea6210ca1cc2f04a26ae9b39cd2290dbe1a672349 /lib/mako/codegen.py
parent32ff74d688d0679d6271afd41f7c9677c0976fa7 (diff)
downloadexternal_python_mako-fa9906eb1bf1b14a76238d1c47dab3c1558fdd0a.tar.gz
external_python_mako-fa9906eb1bf1b14a76238d1c47dab3c1558fdd0a.tar.bz2
external_python_mako-fa9906eb1bf1b14a76238d1c47dab3c1558fdd0a.zip
der, expiretime, not timeout
Diffstat (limited to 'lib/mako/codegen.py')
-rw-r--r--lib/mako/codegen.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/mako/codegen.py b/lib/mako/codegen.py
index 0496614..7396769 100644
--- a/lib/mako/codegen.py
+++ b/lib/mako/codegen.py
@@ -345,10 +345,10 @@ class _GenerateRenderMethod(object):
cachekey = node_or_pagetag.parsed_attributes.get('cache_key', repr(name))
cacheargs = {}
print node_or_pagetag
- for arg in (('cache_type', 'type'), ('cache_dir', 'data_dir'), ('cache_timeout', 'timeout')):
+ for arg in (('cache_type', 'type'), ('cache_dir', 'data_dir'), ('cache_timeout', 'expiretime')):
val = node_or_pagetag.parsed_attributes.get(arg[0], None)
if val is not None:
- if arg[1] == 'timeout':
+ if arg[1] == 'expiretime':
cacheargs[arg[1]] = int(eval(val))
else:
cacheargs[arg[1]] = val
@@ -356,7 +356,7 @@ class _GenerateRenderMethod(object):
if self.compiler.pagetag is not None:
val = self.compiler.pagetag.parsed_attributes.get(arg[0], None)
if val is not None:
- if arg[1] == 'timeout':
+ if arg[1] == 'expiretime':
cacheargs[arg[1]] == int(eval(val))
else:
cacheargs[arg[1]] = val