[Zope3-dev] Re: [Zope3-checkins] CVS: Zope3/src/zope/schema -_bootstrapfields.py:1.19.2.1
Fred L. Drake, Jr.
fred@zope.com
Tue, 22 Jul 2003 11:45:21 -0400
Garrett Smith writes:
> This is the way things work in my branch. E.g. enter 'foo' in an integer
> field -- the widget will continue to render 'foo' along with a
> conversion error msg.
This is goodness.
> setData is called judiciously to avoid overwriting values from the form.
> But, as Fred mentioned, setData should probably not override form values
> anyway.
No, what I meant was: setData() *must* not override form values even
now. The IWidget interface documentation is very misleading on this,
and doesn't explain things in a world where "partial submits" are
possible or even common. (BTW, I hate the term "partial submit"; not
sure who coined that. It's a real HTML form submit!)
-Fred
--
Fred L. Drake, Jr. <fred at zope.com>
PythonLabs at Zope Corporation