Support callable attributes in dotted source. Closes #2142.

This commit is contained in:
Tom Christie 2014-11-27 08:10:52 +00:00
parent 2647e1aaaa
commit 1ffe4857ec

View File

@ -68,8 +68,8 @@ def get_attribute(instance, attrs):
return instance[attr]
except (KeyError, TypeError, AttributeError):
raise exc
if is_simple_callable(instance):
return instance()
if is_simple_callable(instance):
return instance()
return instance