[Zope] SQL from ZPT

Dieter Maurer dieter@handshake.de
Mon, 22 Apr 2002 21:49:15 +0200


Chetan Kumar writes:
 > How can one call SQL methods from ZPT ?
Z SQL Methods are called like any other methods, scripts or functions.

   They either get their parameters implicitly through REQUEST
   or explicitly through a series of keyword parameters.

The easiest way is (implicit paramters)

    <... tal:repeat="rec here/SQLMethod" ..>

A bit more difficult is explicit parameter passing:

    <... tal:repeat="rec python:here.SQLMethod(a1=val1, a2=val2,....)" ...>


Dieter