let row directly control value used for sorting to make row objects work whose context does not directly contain the corresponding attribute

This commit is contained in:
Helmut Merz 2011-05-10 08:10:07 +02:00
parent 56773a72c3
commit f563b8558e

View file

@ -86,7 +86,8 @@ class Field(Component):
def getSortValue(self, row):
# TODO: consider 'descending' flag, use raw value instead of formatted one
return self.getValue(row)
return getattr(row, self.name, None)
#return self.getValue(row)
label = Field('label', u'Label',