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

Stephan Richter srichter at cosmos.phy.tufts.edu
Mon Sep 27 09:54:36 EDT 2004


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
-- 
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training


More information about the Zope3-dev mailing list