From 6c123d7281e96e96c6e2a0b2aabd83cbd4c7d75d Mon Sep 17 00:00:00 2001 From: helmutm Date: Thu, 19 Feb 2009 16:02:01 +0000 Subject: [PATCH] make records field more fault tolerant git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@3241 fd906abe-77d9-0310-91a1-e0d9ade77398 --- composer/schema/grid/field.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer/schema/grid/field.py b/composer/schema/grid/field.py index 930039d..b1faeae 100644 --- a/composer/schema/grid/field.py +++ b/composer/schema/grid/field.py @@ -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