[Zope] Critical Question for Dieter - Testing with <dtml-in Catalog>
Bak @ kedai
kedai@kedai.com.my
Wed, 15 May 2002 22:18:59 +0800
-----Original Message-----
From: Michael <mlewis@exasource.com>
To: kedai@kedai.com.my <kedai@kedai.com.my>
Cc: zope@zope.org <zope@zope.org>; Dieter Maurer <dieter@handshake.de>;
paul@zope.com <paul@zope.com>
Date: Wednesday, May 15, 2002 7:12 PM
Subject: Re: [Zope] Critical Question for Dieter - Testing with <dtml-in
Catalog>
>Man, it must have been a lot of head bangin. Now can I use this same
>method for let's say limiting the number of postings someone could make?
> For example, say I have a variable called max_limit. max_limit=10,
>could I do
><dtml-if "Catalog(max_limit<={'query':_['sequence-number']})">
>Sometimes this syntax issue gets rather confusing.
>
>Thanks again,
>
>Michael
>
well, it's not a matter of plugging in stuff. depends on what you want to
do, really.
if you have max_limit in the catalog too, sure
that syntax is used to query the catalog. check the zopebook
hth