Hi Jim > Betreff: Re: [Zope-dev] Make simple ISource usable > > > On Aug 30, 2008, at 10:54 AM, Roger Ineichen wrote: > > But zope.schema does already know about term. > > This was a mistake.
Let's fix that mistake and do it right. That's all I'm asking for. Just saying no that's bad doesn't help. Any idea how we can do it? My motivation is to have less dependencies which is allways a good thing. or not? > > ... > > > ISource uses ITerm as items. > > No it doesn't. Ok, that wasn't correct. Let's say it right. ITerms uses ITerm as items. And we have widgets which know how to work with ITerms. ITerms adapter can adapt an ISource. And this adapter knows about ITerm which widgets can work with. Not every ISource have to use that pattern. But that's the second pattern we support in zope within an interface next to ISourceQueriable. Of corse everybody can implement a own API and query sources how the like to. But the benefit of a standard API like we have with ITerms is that we are able to implement reusable components which the different widget framework can use. This means ITerms should not be a part of a specific widget framework. The same is true for ISourceQueriable which is not a part of zope.app.form and that's good so. Regards Roger Ieichen > Jim > > -- > Jim Fulton > Zope Corporation > > > _______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )