summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2010-11-14 00:15:51 -0500
committerChris McDonough <chrism@plope.com>2010-11-14 00:15:51 -0500
commit633700e4c820ba8d0d1652cd799f7119b7a07632 (patch)
tree2059c54a13aad47db23f70ac50dd84e724d68607
parent6342355b367adf59619aef5d386c96d4ec056186 (diff)
downloadpyramid-633700e4c820ba8d0d1652cd799f7119b7a07632.tar.gz
pyramid-633700e4c820ba8d0d1652cd799f7119b7a07632.tar.bz2
pyramid-633700e4c820ba8d0d1652cd799f7119b7a07632.zip
remove template property, it's not part of the interface
-rw-r--r--pyramid/mako_templating.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/pyramid/mako_templating.py b/pyramid/mako_templating.py
index bf51257a0..7e9ae236f 100644
--- a/pyramid/mako_templating.py
+++ b/pyramid/mako_templating.py
@@ -81,12 +81,8 @@ class MakoLookupTemplateRenderer(object):
self.lookup = lookup
def implementation(self):
- return self.template
-
- @property
- def template(self):
return self.lookup.get_template(self.path)
-
+
def __call__(self, value, system):
context = system.pop('context', None)
if context is not None:
@@ -98,7 +94,7 @@ class MakoLookupTemplateRenderer(object):
system.update(value)
except (TypeError, ValueError):
raise ValueError('renderer was passed non-dictionary as value')
- template = self.template
+ template = self.implementation()
if def_name is not None:
template = template.get_def(def_name)
result = template.render_unicode(**system)