[Zope] dynamically call zsqlmethod

Garry Saddington garry at schoolteachers.co.uk
Wed Nov 25 15:32:16 EST 2009


Jeff Peterson wrote:
> IF it's a variable passed to the script wouldn't you simply access it as 'column'?
> 
> Also, is it a variable or a function? Or is the variable the name of a function somewhere?
> 
> If it's the former just call it: column().
> 
> If it's the latter, Andreas should be correct, getattr(context, column)() or possible context[column] if you like that better. 
Thanks, Andreas' solution works for me.
Regards
Garry


More information about the Zope mailing list