From d5690fafa24dbebbbe65d92fd3eea3ba3ddc65b3 Mon Sep 17 00:00:00 2001 From: Helmut Merz Date: Sun, 26 Feb 2012 10:19:05 +0100 Subject: [PATCH] use correct getContextAttr() method: from object, not class --- composer/report/result.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/composer/report/result.py b/composer/report/result.py index 4401563..5b3a13a 100644 --- a/composer/report/result.py +++ b/composer/report/result.py @@ -1,5 +1,5 @@ # -# Copyright (c) 2010 Helmut Merz helmutm@cy55.de +# Copyright (c) 2012 Helmut Merz helmutm@cy55.de # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -48,14 +48,13 @@ class Row(BaseRow): attributeHandlers = {} def getRawValue(self, attr): - return self.attributeHandlers.get(attr, Row.getContextAttr)(self, attr) + return self.attributeHandlers.get(attr, self.getContextAttr)(self, attr) @staticmethod def getContextAttr(obj, attr): return getattr(obj.context, attr) - class ResultSet(object): def __init__(self, context, data, rowFactory=Row,