[Zope-dev] Make simple ISource usable

Christian Zagrodnick cz at gocept.com
Mon Sep 1 02:29:44 EDT 2008


On 2008-08-31 22:51:38 +0200, Marius Gedminas <marius at gedmin.as> said:

> 
> 
> 
> 
> On Sun, Aug 31, 2008 at 10:23:00PM +0200, Christian Zagrodnick wrote:
>> Wait. zope.schema really shouldn't know about terms. Terms are about=20
>> the user interface, hence title/token. That has really *nothing* to do=20
>> with zope.schema. For searching you don't need titles or tokens. For a=20
>> search *UI* you do, but that doesn't belong to zope.schema either.
> 
> Are you arguing that zope.schema.Field should not have a title
> attribute?

No no no, sorry :)

I only don't see why I need titles for a source all the time. If you 
need both tied toogether (which frankly quite often is the case) 
zc.sourcefactory does the right thing (for me). If you just need to 
define a set of values you can just define the source (i.e. 
__contains__).


-- 
Christian Zagrodnick · cz at gocept.com
gocept gmbh & co. kg · forsterstraße 29 · 06112 halle (saale) · germany
http://gocept.com · tel +49 345 1229889 4 · fax +49 345 1229889 1
Zope and Plone consulting and development




More information about the Zope-Dev mailing list