[Zope-dev] automatically doing a Catalog search as part of ob
ject traversal...
Michel Pelletier
michel@digicool.com
Tue, 30 Nov 1999 10:21:50 -0500
> -----Original Message-----
> From: Anthony Baxter [mailto:anthony@interlink.com.au]
> Sent: Tuesday, November 30, 1999 1:19 AM
> To: zope-dev@zope.org
> Subject: [Zope-dev] automatically doing a Catalog search as part of
> object traversal...
>
>
> Say I have a catalog HelpCatalog, with a bunch of documents that have
> unique IDs. I want to be able to do something like
> HelpCatalog/by-id/SomeUniqueID
> and have it return the document SomeUniqueID.
>
> Do Catalogs support any sort of Direct Traversal like this?
No but it's not a bad idea.
> Or am I going
> to have to do it myself with a mixin class?
You could allways submit a patch. ;)
Note that ZTopics, in a way, does this genericly, it executes canned
queries based on traversal, it might need to be fondled a bit to get it
to do exactly this however.
-Michel