[Zope-dev] Make simple ISource usable

Roger Ineichen dev at projekt01.ch
Tue Sep 2 11:19:14 EDT 2008


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
> 
> 
> 



More information about the Zope-Dev mailing list