[Zope] a question about python and zpt interacting with ZSQL method

Dieter Maurer dieter@handshake.de
Fri, 27 Jun 2003 01:29:02 +0200


Andreas Pakulat wrote at 2003-6-26 15:03 +0200:
 > On 26.Jun 2003 - 13:51:55, Exteam wrote:
 > > 
 > > Hi all
 > > 
 > > I am a newbie in Zope and ZPT.
 > > 
 > > I want to pass an argument from ZPT via python which in turn passes it to a ZSQL method to make a query in the database based on that argument.
 > 
 > Hmm, don't know If I understand you, but I would call the script with
 > the parameter like this:
 > python:scriptname(parameter=variable)
 > Then in the script you can do the same qith the ZSQL Method:
 > context.zsqlmethod(parameter)

ZSQLMethods require keyword arguments.


Dieter