diff -r 4f746935e6b1 -r e4d965b5ca37 web/form.py --- a/web/form.py Wed Mar 11 11:18:57 2009 +0100 +++ b/web/form.py Wed Mar 11 11:19:23 2009 +0100 @@ -753,7 +753,7 @@ if value: self.form_add_hidden(param, initial=value) self.buttons = buttons or [] - self.context = {} + self.context = None @property def form_needs_multipart(self): @@ -868,7 +868,8 @@ if fieldname.startswith('edits-') or fieldname.startswith('edito-'): # edit[s|o]- fieds must have the actual value stored on the entity if self.entity.has_eid(): - value = self.form_field_entity_value(field.visible_field, default_initial=False) + value = self.form_field_entity_value(field.visible_field, + default_initial=False) else: value = INTERNAL_FIELD_VALUE elif fieldname == '__type':