From 633700e4c820ba8d0d1652cd799f7119b7a07632 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Sun, 14 Nov 2010 00:15:51 -0500 Subject: remove template property, it's not part of the interface --- pyramid/mako_templating.py | 8 ++------ 1 file 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) -- cgit v1.2.3