[Zope3-dev] Why do we need inut widgets to have both validate andgetInputValue methods?

Garrett Smith garrett at mojave-corp.com
Mon Sep 27 10:04:16 EDT 2004


Stephan Richter wrote:
> On Monday 27 September 2004 06:21, Jim Fulton wrote:
>> zope.app.form.interfaces.IInputWidget defines validate and
>> getInputValue methods that seem to do the same thing.  In fact, the
>> default implementation of validate in zope.app.form.Widget just
>> returns the result of calling getInputValue. None of the
>> implementations in zope.app.form.browser override this definition of
>> validate. 
>> 
>> I propose to get rid of (deprecate) the validate method.
> 
> I was wondering about the same myself. But then I did not have the
> insight in the framework to make a suggestion. I guess Gary and/or
> Garrett will have an answer.
> 
> +1 from me.
> 
> Regards,
> Stephan

I have a proposal that's Marius and I worked on that will be posted
shortly (as in later today when I have a bit of time). I think there
might be a use for validate.

 --Garrett


More information about the Zope3-dev mailing list