addressed issue 916 and reverted some changes but not convinced this is always the right solution

This commit is contained in:
mdipierro
2012-08-06 21:24:35 -05:00
parent 15a3241437
commit 0d99d9fc9e
2 changed files with 5 additions and 2 deletions

View File

@@ -1 +1 @@
Version 2.00.0 (2012-08-06 20:54:15) dev
Version 2.00.0 (2012-08-06 21:24:31) dev

View File

@@ -7487,7 +7487,10 @@ class Table(dict):
new_fields.append((ofield,ofield.update))
for ofield in self:
if ofield.compute:
new_fields.append((ofield,ofield.compute(Row(fields))))
try:
new_fields.append((ofield,ofield.compute(Row(fields))))
except KeyError:
pass
if not update and ofield.required and not ofield.name in new_fields_names:
raise SyntaxError,'Table: missing required field: %s' % ofield.name
return new_fields