From 391b34d8f502fdd53ccc8b30f89f158ec93f2cd2 Mon Sep 17 00:00:00 2001 From: Tom Keffer Date: Sat, 20 Feb 2010 17:47:03 +0000 Subject: [PATCH] Now calls __getattr__ directly in the target model instead of __getattribute__, because the latter does never calls __getattr__. --- weewx/formatter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weewx/formatter.py b/weewx/formatter.py index 16bf06a4..c0542a7e 100644 --- a/weewx/formatter.py +++ b/weewx/formatter.py @@ -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?