Now calls __getattr__ directly in the target model instead of __getattribute__, because the latter does never calls __getattr__.

This commit is contained in:
Tom Keffer
2010-02-20 17:47:03 +00:00
parent 35bc1837d1
commit 391b34d8f5

View File

@@ -88,7 +88,7 @@ class ModelView(object):
# This will raise an AttributeError exception if the model
# does not support the attribute 'attr':
v = self.model.__getattribute__(attr)
v = self.model.__getattr__(attr)
# If we made it this far, the model does have attribute 'attr'.
# Is it a scalar?