[Zope3-dev] Re: Field binding considered icky

Martijn Faassen faassen at infrae.com
Mon Apr 5 14:51:38 EDT 2004


Jim Fulton wrote:
> Of course, adaptation is pretty heavy to.
> 
> Perhaps we should compromise and and keep the existing validate methods
> without binding.  In *Zope*, when validating, we'll *try* to get an adapter
> for the field and context and, if that fails, just call validate on the 
> field.
> 
> This feels like the right approach to me.

+1. The adapter should then call the original field validate method 
first, and then add to it. I think it should only add to the validation 
process, never alter it. This makes it easier to reason about such adapters.

Regards,

Martijn



More information about the Zope3-dev mailing list