[Zope] dtml syntax help
Dieter Maurer
dieter@handshake.de
Fri, 27 Dec 2002 20:38:52 +0100
Sean Kelley wrote at 2002-12-26 19:41 -0800:
> I need help with dtml syntax...
> I have the following line before a dtml-in on a catalog:
> <dtml-call "REQUEST.set('Verified','on')">
> I want to be able to list only items where Verified is not set to 'on'
> The default value of verified is no value at all. If I say:
> <dtml-call "REQUEST.set('Verified','')">
> (empty value) I get everything.
>
> How does one say Verified = to NOT 'on' in dtml?
ZCatalog wants to do the right thing with search forms with several
fields. It wants to interprete an empty field as "ignore this field".
Because of this, it forgets about subqueries where the query value is
''.
Chris already told you about a workaround...
Dieter