Re: [Zope3-Users] Re: Referencing objects in auto-generated forms

2006-04-18 Thread Frank Burkhardt
Hi,.

On Sun, Apr 16, 2006 at 01:48:37PM -0500, Jeff Rush wrote:

[snip]

 Frank, I thought vocabularies were being de-emphasized though, in favor of 
 the newer 'sources' component?  
 Vocabularies were good for short lists of choices, but because it read them 
 all into memory at once not so good 
 at lazy evaluation.  Sources supposedly uses an iterator and is good for both 
 short and long lists, as I roughly 
 understand it.

Hmm - I've heard about Sources before but I didn't know the difference to
vocabularies. Thank you for the hint.

BTW: Does de-emphasized mean deprecated and no longer supported in 
Zope3.nnn ?

Regards,

Frank
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Re: Referencing objects in auto-generated forms

2006-04-18 Thread Gary Poster


On Apr 18, 2006, at 3:31 AM, Frank Burkhardt wrote:


Hi,.

On Sun, Apr 16, 2006 at 01:48:37PM -0500, Jeff Rush wrote:

[snip]

Frank, I thought vocabularies were being de-emphasized though, in  
favor of the newer 'sources' component?
Vocabularies were good for short lists of choices, but because it  
read them all into memory at once not so good
at lazy evaluation.  Sources supposedly uses an iterator and is  
good for both short and long lists, as I roughly

understand it.


No, actually, both can be used for infinite choices or finite  
choices.  The primary difference to me is purity: sources break apart  
the token functionality--an aspect of display that widgets need--from  
the data definition.


Up until fairly recently (i.e., post-3.2, I believe) you couldn't  
even express a finite source.


There are still more vocabulary widgets than source widgets in  
zope.app.form.


Sources are slated to replace vocabularies, but the uptake has been  
slow: I don't know of a hard date.


Gary

___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


[Zope3-Users] Re: Referencing objects in auto-generated forms

2006-04-16 Thread Jeff Rush

Frank Burkhardt wrote:


On Sat, Apr 15, 2006 at 08:41:57AM -0700, Ruben Gutierrez wrote:


I'm having trouble understanding some of the semantics or conventions with
Zope. One simple question I have is how do I create a list of selectable
values in a form.



Sounds like a classic use case for a vocabulary.


Frank, I thought vocabularies were being de-emphasized though, in favor of the 
newer 'sources' component?  Vocabularies were good for short lists of choices, 
but because it read them all into memory at once not so good at lazy 
evaluation.  Sources supposedly uses an iterator and is good for both short 
and long lists, as I roughly understand it.


-Jeff

___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users