On Fri, 6 Oct 2006 13:48:33 -0400
"Jorge Vargas" <[EMAIL PROTECTED]> wrote:

> 
> On 10/6/06, Jason Chu <[EMAIL PROTECTED]> wrote:
> > I'll admit it, I'm only now looking into why our app doesn't work
> > with 1.0b1.  But now I'm looking into it more and I've noticed
> > something.
> >
> > Before 0.9a7 (I believe) the options argument on list widgets
> > (SelectField, etc) was allowed to return a generator.  Once
> > _expand_options was added/modified it tries to look at len(opts)
> > (line 788 widgets/forms.py).  I haven't looked a lot into the code,
> > but what was the reason for the change?
> >
> > I do realize that most option lists aren't usually that long, so
> > looping over them more than once isn't usually a big deal.  Does
> > this mean that generators are officially not supported in the
> > options argument of a widget?
> >
> > I just want to know before I go and change all of our application
> > code...
> >
> could this be the change?
> http://trac.turbogears.org/turbogears/changeset/1873

http://trac.turbogears.org/turbogears/changeset/1682

This was the change.  It looks like things were changed to support
options=["a", "b", "c"], but it broke generator support.

Jason

Attachment: signature.asc
Description: PGP signature

Reply via email to