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

> Jason
>
>
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---

Reply via email to