25 Nov
2009
25 Nov
'09
8:32 p.m.
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