AW: [Zope3-dev] Possible bug in editform

Roger ineichen dev at projekt01.ch
Fri Jul 16 17:44:54 EDT 2004


Garrett Smith wrote;
> Betreff: [Zope3-dev] Possible bug in editform
> 
> 
> I think this is bug, but wanted to get feedback from the list.
> 
> When you update an object and the form has widget errors, any values
> that were successfully updated by widgets (i.e. no errors) 
> are committed 
> to the database.
> 
> I suppose this could be viewed as a feature -- the form
> applied whatever 
> changes it could. But this behavior surprised me -- I would 
> expect that 
> either all modified values are updated, or none are.
> 
> As to the solution, I have a get_transaction().abort() in the
> edit form, 
> where it handles the widgets errors.
> 
>   -- Garrett

I agree, this is better for to understand what's going on.



More information about the Zope3-dev mailing list