[Zope] Newbie - passing a list to an External Method
Ashley Lloyd
ashleylloyd@hotmail.com
Tue, 22 Apr 2003 16:31:25 +0100
Thanks again for your help Dylan.
If I set the External Method parameters to (self, fileID, Lines), and call
it in this manner:
<dtml-let link="sping2(fileID='myPDFfile.pdf',lines=mylines)">
(sping2 being the ID of the External Method - and the external method
returning the fileID that is passed in as the filename to generate)
I get the following error:
Error Type TypeError
Error Value run() takes exactly 3 non-keyword arguments (0 given)
Error Trace Traceback (most recent call last):
File "C:\PROGRA~1\ZopeSite\lib\python\DocumentTemplate\DT_Try.py", line 149,
in render_try_except
result = render_blocks(self.section, md)
File "C:\PROGRA~1\ZopeSite\lib\python\DocumentTemplate\DT_Let.py", line 75,
in render
else: d[name]=expr(md)
File "C:\PROGRA~1\ZopeSite\lib\python\DocumentTemplate\DT_Util.py", line
159, in eval
return eval(code, d)
File "", line 2, in f
File
"C:\PROGRA~1\ZopeSite\lib\python\Products\ExternalMethod\ExternalMethod.py",
line 198, in __call__
try: return apply(f,args,kw)
TypeError: run() takes exactly 3 non-keyword arguments (0 given)
Thanks again
Ashley
_________________________________________________________________
Worried what your kids see online? Protect them better with MSN 8
http://join.msn.com/?page=features/parental&pgmarket=en-gb&XAPID=186&DI=1059