[Zope] Indirect calling of extensions?
Glenn Rogers
zope-list@gacela.demon.co.uk
Fri, 24 Mar 2000 16:55:35 +0000
Imagine I have a python extension, with zope id pyFetch
def Fetch (self, href):
...
I want to call this in a manner similar to:
<!--#let call_method="'pyFetch'"-->
<!--#in sql-method-returns-href-->
<!--#var "_[call_method]( href )"-->
<!--#/in-->
<!--#/let-->
But I get an error:
Error Type: TypeError
Error Value: not enough arguments; expected 2, got 0
So it seems to evaluate and call the extension without adding the
parameters. I guess I need something like lambda in python.
Can anyone help me please?
Thanks,
Glenn