21 Feb
2007
21 Feb
'07
12:38 p.m.
----- Original Message ----- From: "rieh25" <robertoedwins@gmail.com> To: <zope@zope.org> Sent: Tuesday, February 20, 2007 10:30 PM Subject: [Zope] How to call a script by it's name stored in a variable.
How can I do something like this?
var = '/Projects/test_py'
return call_by_name(var)
Another option: if the script you want to call is in the same folder as the calling script then this will work: var = 'test_py' return getattr(context, var)() Jonathan