Merge "Fix table rendering for iterable objects"

This commit is contained in:
Jenkins 2014-02-13 09:55:39 +00:00 committed by Gerrit Code Review
commit 4e1eb710e0

View File

@ -307,7 +307,7 @@ class Column(html.HTMLElement):
if callable(self.transform):
data = self.transform(datum)
# Dict lookups
elif isinstance(datum, collections.Iterable) and \
elif isinstance(datum, collections.Mapping) and \
self.transform in datum:
data = datum.get(self.transform)
else: