make records field more fault tolerant

git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@3241 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
helmutm 2009-02-19 16:02:01 +00:00
parent 35f9224c25
commit 6c123d7281

View file

@ -114,7 +114,7 @@ class RecordsFieldInstance(GridFieldInstance):
for row in value or []:
item = {}
for fi in self.columnFieldInstances:
item[fi.name] = fi.marshall(row[fi.name])
item[fi.name] = fi.marshall(row.get(fi.name))
result.append(item)
return result