[Zope] Use ZCatalog or Catalog in a Python product?

Lennart Regebro lennart@torped.se
Sat, 2 Nov 2002 22:37:41 +0100


From: "Hamish Lawson" <hbl@st-andrews.ac.uk>
> My Python product needs to have its own catalog. Should I use ZCatalog or
> Catalog? I don't require to expose the catalog in the management
interface,
> so I'm guessing I just need Catalog.

If you are cataloging objects in the database, I would definitely recommend
subclassing ZCatalog, with it's management interface. You can "hide" it by
not showing the tabs, but still letting it be accessible via the /manage_
urls. It will come in handy.

If you are indexing something else altogether and the indexes and meta_data
columns are fixed, then Catalog will probably work well, and in that case
you probably wouldn't subclass fromCatalog, but let the catalog be an
attribute on your object.

That's my guesses... :-)

Best Regards

Lennart Regebro
Torped Strategi och Kommunikation AB