[ZPT] Parameter from Python Script to SqlMethod

Evan Simpson evan@zope.com
Fri, 01 Feb 2002 07:42:44 -0500


Damir Bartakovic wrote:
 > for emp in context.PkSelectMethod(personsid):

 > PkSelectMethod is a SqlMethod which requires the parameter
 > "pk_pers_personsid". When I call this script I get : "Missing input
 > variable, pk_pers_personsid"

SQL Methods don't use positional parameters.  You need to call it with a
keyword parameter, like this:

for emp in context.PkSelectMethod(pk_pers_personsid=personsid):

Cheers,

Evan @ Zope