Doug Winter a écrit :
> On Mar 7, 12:34 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]>
> wrote:
>   
...
> It looks like it's not possible to pass a callable to the default
> option though, which I'd need too (since which options are selected is
> also driven by the database).  Is that the case, or have I just not
> made it work properly?  I've gone through the code by eye, but it's
> not obvious.
>
>   
default option is passed through the value parameter :
if you have options=[(0, "aaa"), (1, "bbb"), (2, "ccc")] you can pass 
value=dict(field_name=2 and your selectfield will be positionned over 
the "ccc"
> Cheers,
>
> Doug.
>
>
> >
>   

--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to