use correct getContextAttr() method: from object, not class
This commit is contained in:
parent
180ab86be6
commit
d5690fafa2
1 changed files with 2 additions and 3 deletions
|
@ -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
|
# 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
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
@ -48,14 +48,13 @@ class Row(BaseRow):
|
||||||
attributeHandlers = {}
|
attributeHandlers = {}
|
||||||
|
|
||||||
def getRawValue(self, attr):
|
def getRawValue(self, attr):
|
||||||
return self.attributeHandlers.get(attr, Row.getContextAttr)(self, attr)
|
return self.attributeHandlers.get(attr, self.getContextAttr)(self, attr)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def getContextAttr(obj, attr):
|
def getContextAttr(obj, attr):
|
||||||
return getattr(obj.context, attr)
|
return getattr(obj.context, attr)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class ResultSet(object):
|
class ResultSet(object):
|
||||||
|
|
||||||
def __init__(self, context, data, rowFactory=Row,
|
def __init__(self, context, data, rowFactory=Row,
|
||||||
|
|
Loading…
Add table
Reference in a new issue