Re: [Zope] catalog-aware z-classes
hi Douwe, thanks for your quick response. I don't think I could use one catalog, as I'll be searching on different fieldnames, and wanting different metadata for each z-class, so I would need all the indexes and metadata for each object - there will be around 30 z-classes, so the catalog might have around 100 indexes and metadata items. I prefer the idea having assigning a catalog to each z-class. I can see this in the source code for Catalog/CatalogAwareness.manage_editCataloger, which looks like it allows the default to be changed through the ZMI, but have no idea how to find and set this through the ZMI for my z-classes. does anyone have any advice on how to do this? thanks, Ben Avery -----Original Message----- From: douwe@oberon.nl [mailto:douwe@oberon.nl] Sent: 03 July 2002 13:41 To: Ben Avery; zope@zope.org Subject: RE: [Zope] catalog-aware z-classes Hi, Why not store them in the same catalog and filter on meta_type when searching? Anyway, I don't think there is a problem storing ZClass instances in a Catalog named other then Catalog, except for that it won't happen automatically, you'll have to do it yourself. Douwe
-----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Ben Avery Sent: Wednesday, July 03, 2002 2:14 PM To: zope@zope.org Subject: [Zope] catalog-aware z-classes
Hi,
I need to create a number of z-classes to represent objects, and want them to be catalog aware, with each having its own catalog. The example in the Zope book requires the catalog to have the id 'Catalog' or it won't work, as this is the default for ZCatalog-aware objects. But I'll need different ids, as I have more than one catalog. How can I override this default?
thanks,
Ben Avery
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
participants (1)
-
Ben Avery