SmokeyD schrieb:
> I found (but maybe I did something wrong) that
> DataGrid(fields=[('prettyname','ModelClass.method')]) does not result
> in ModelClass.method being called to retrieve the value for the
> 'prettyname' column for each row. Am I mistaken?
I would suspect that you need to pass the method object itself here, not
the name of it, i.e.
DataGrid(fields=[('prettyname', ModelClass.method)])
This is not PHP ;-)
Chris
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---