>
> Again, the above code *calls* the getValuesFromA when *defining* the
> widget. *Don't* do that. Pass only the callable.
>
> Diez
Soryy, i have already corrected it.
Forgot to correct the code here
i tried
w=widgets.SingleSelectField(options=getValuesFromA)
and
w=widgets.SingleSelectFiled(options=[(item.field1, item.field2) for
item in A.select()] )

But both results in the same error.
--~--~---------~--~----~------------~-------~--~----~
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