[Zope] "Bad Request" error on calling a zsql method
Dieter Maurer
dieter@handshake.de
Thu, 7 Jun 2001 22:35:12 +0200 (CEST)
Jean Lagarde writes:
> The problem comes up when trying to call a zsql method with implicit
> argument passing. The zsql method (insertOccurences) declares the two
> arguments 'occurence' and 'problemID'. The calling dtml is as follows:
An FAQ (--> searchable mailing list archives):
Z SQL Methods do *not* look into the DTML namespace for their
arguments.
You have 3 options:
1. explicitly passing the parameters as keyword (!) arguments
2. passing a mapping as single positional argument.
The mapping contains all arguments
3. putting the arguments in the REQUEST object, aka:
<dtml-call "REQUEST.set(<paramname>,<paramvalue>)">
and calling the method implicitly.
Dieter