[Zope3-dev] Possible bug in editform
Jim Fulton
jim at zope.com
Mon Jul 19 09:55:41 EDT 2004
Garrett Smith wrote:
> 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.
This is definately a bug.
> As to the solution, I have a get_transaction().abort() in the edit form,
> where it handles the widgets errors.
That will work.
A functional test for this would be great. :)
Jim
--
Jim Fulton mailto:jim at zope.com Python Powered!
CTO (540) 361-1714 http://www.python.org
Zope Corporation http://www.zope.com http://www.zope.org
More information about the Zope3-dev
mailing list