From f1d22a445260e0845cbf47a3a6519bbe37db9d4e Mon Sep 17 00:00:00 2001 From: Rodrigo Bernardo Pimentel Date: Sun, 29 Apr 2012 17:27:29 +0200 Subject: Auto-calling elements in the middle of a dot-notation path (reverts 3c5a6db5a0fe7cfeaee04476419ca2b7ada18b1e) --- pystache/context.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pystache/context.py b/pystache/context.py index 4121dc5..d5570da 100644 --- a/pystache/context.py +++ b/pystache/context.py @@ -49,10 +49,7 @@ def _get_value(item, key): # are considered objects by the test above. if hasattr(item, key): attr = getattr(item, key) - # If there are still parts to process (in a dot-notation key), - # we do not automatically invoke the object, even if it's callable. - autocall = len(rest) == 0 - if autocall and _is_callable(attr): + if _is_callable(attr): value = attr() else: value = attr -- cgit v1.2.1