[Zope] Newbie - passing a list to an External Method
Dylan Reinhardt
zope@dylanreinhardt.com
22 Apr 2003 09:12:46 -0700
On Tue, 2003-04-22 at 08:31, Ashley Lloyd wrote:
> Thanks again for your help Dylan.
>
> If I set the External Method parameters to (self, fileID, Lines)
Are you adding "self" to the parameter list of the external method
object in Zope? You shouldn't be.
Just make it the first parameter in the external method _code_. Don't
change the external method object or the DTML code that calls it.
Let's see where that gets us...
Dylan
PS - On a tangent, it's a really good idea to get in the habit of giving
your functions specific, descriptive names (like "create_pdf()") rather
than naming them after a module they import or using common terms like
"run()" (a name which is used elsewhere in the language). This makes
troubleshoot easier and reduces the odds that you'll accidentally
encounter a namespace collision.