[Zope-DB] Re: How to call a zsql method with NOT a parameter

Dieter Maurer dieter at handshake.de
Tue Feb 1 13:18:51 EST 2005


Axel Straschil wrote at 2005-1-31 19:31 +0000:
> ...
>> In principle, parameters to ZSQL Methods can take default values.
>> They somehow look like "parameter=value".
>
>If I don't want a parameter to be used in an dtml-sqlgroup section, an
>default woul'd not help ;-)

Again: the code (of "sqltest optional") suggests that an empty string (!)
as value (however this value was obtained: explicit passing or default
value) is interpreted as "no value specified" *unless* "type=string".

>Also, afaik, parameter=None in zsql gives not None, it gives 'None'.

Thats why I told you to try the empty string...

-- 
Dieter


More information about the Zope-DB mailing list