[Zope] CatalogQuery-0.1 not showing in the drop-down menu
Casey Duncan
cduncan@kaivo.com
Tue, 03 Jul 2001 10:02:10 -0600
Norman Khine wrote:
>
> Thanks Andreas,
> But I am using Zope 2.3.3 and the problem does exist? can anyone confirm
> this!
>
> norman
>
> -----Original Message-----
> From: Andreas Jung [mailto:andreas@andreas-jung.com]
> Sent: Tuesday, July 03, 2001 1:18 PM
> To: Norman Khine; Zope Mailing List; cduncan@kaivo.com
> Subject: Re: [Zope] CatalogQuery-0.1 not showing in the drop-down menu
>
> There has been a problem in 2.4 Alpha1 and Beta 1 where
> old-style products were registered but not shown in the drop-down menu
> due to some changes in the product registry. This problem is fixed in Beta2
> Zope 2.3.X should not be affected because the changes were made in 2.4.X.
>
> Andreas
> ----- Original Message -----
> From: "Norman Khine" <norman@khine.net>
> To: "Zope Mailing List" <zope@zope.org>; <cduncan@kaivo.com>
> Sent: Tuesday, July 03, 2001 4:43 AM
> Subject: [Zope] CatalogQuery-0.1 not showing in the drop-down menu
>
> > Hello
> >
> > I just installed the CatalogQuery-0.1, and restarted zope, there were no
> > errors nor tracebacks. BUT, I don't seem to be able he product from the
> > drop-down menu as is not in the options to select from.
> >
> > This is my setup:
> >
> > Zope Version Zope 2.3.3 (source release, python 1.5.2, linux2)
> > Python Version 2.1 (#1, Jun 6 2001, 14:18:24) [GCC 2.95.2 19991024
> > (release)]
> >
> > There was similar problems, before with ZMySQLDA and ZGadfly, where both
> > Products ware shown as installed, but were unavailable in the drop-down
> > menu.
> >
> > here is the link of the solution, i think
> >
> > http://lists.zope.org/pipermail/zope/2001-June/092803.html
> >
> > Norman
> >
> >
CatalogQuery does not add any new Zope object classes you can create
(yet), so this behavior is correct. It adds a "query" method to
ZCatalog. Just create a ZCatalog like usual and use the "query" method
of it to use the product.
As in:
<dtml-in expr="MyZCatalog.query('title != 'spam and eggs')">
hth,
--
| Casey Duncan
| Kaivo, Inc.
| cduncan@kaivo.com
`------------------>