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

This commit is contained in:
mdipierro committed 2012-08-06 21:24:35 -05:00
1 parent b0d3b2063e
commit 0531571d08
2 files changed
+4 -1

No files matched your search

+1 -1
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
+3
View File
@@ -7487,7 +7487,10 @@ class Table(dict):
new_fields.append((ofield,ofield.update)) new_fields.append((ofield,ofield.update))
for ofield in self: for ofield in self:
if ofield.compute: if ofield.compute:
try:
new_fields.append((ofield,ofield.compute(Row(fields)))) 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: if not update and ofield.required and not ofield.name in new_fields_names:
raise SyntaxError,'Table: missing required field: %s' % ofield.name raise SyntaxError,'Table: missing required field: %s' % ofield.name
return new_fields return new_fields