[Zope-DB] Re: How to call a zsql method with NOT a parameter
Dieter Maurer
dieter at handshake.de
Fri Jan 28 13:15:32 EST 2005
Axel Straschil wrote at 2005-1-27 19:53 +0000:
> ...
>I realy was expeciting my_zsql() to behave like my_dtml_method()
Unfortunately, this expectation is wrong.
Z SQL Methods have a signature different from DTML Objects.
> ...
>With zsql, acquisition is a MUST, not a feature. This makes the realy
>where strong feature "dtml-sqlgroup where" obsolete, becouse I can never
>have a guaranteed state how to behave.
Two notes:
* apparently, you too, belong to the people that do not
read my responses casefully.
I told you how to work around the problem; didn't I?
To repeat it:
pass "''" (empty strings) for arguments you want
not to be acquired and ignored by "dtml-sqltest ... optional".
This should work for all types different from "string".
If you do not read my messages, I will start not to read
your questions ;-)
* It is very easy to define your own variant of
Z SQL Methods (using inheritance) -- with a behaviour
you like.
Look at "CCSQLMethods" for an example.
--
Dieter
More information about the Zope-DB
mailing list