[Zope] Pythonscript question

Troy Farrell troy at entheossoft.com
Fri Mar 26 01:55:56 EST 2004


Hello Drew.  As far as I know what you are trying to do does not work.  Instead, 
define each method as a separate python script.

Troy

drew nichols wrote:
> Can i get methods dynamically from a pythonscript?
> getattr doesn't seem to work.
> 
> I guess external methods would work, but can this be done?
> 
> ##parameters=method=None
> ##
> def a():
>    return 'Hello'
> 
> if method is not None:
>    return getattr ( script, method )()



More information about the Zope mailing list