In a SelectionField, you can pass a callable for the options parameter, 
which is often very handy. However, the default value can only be a 
static value. Admitted, you can always simulate this by setting the 
value if it is None, but this is often less convenient.

So I have patched my TG 1.0 to evaluate the default value by calling it 
if it is callable, just as it does with other parameters. This works 
nicely for me. Shall we put this in the official TG 1.0? (It does not 
really make sense to change this only in 1.1 since the old widgets may 
be replaced by TW anyway.)

-- Christoph

--~--~---------~--~----~------------~-------~--~----~
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