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
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 )
Ben Avery writes:
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? "Catalog[PAth}Aware" has a method to set the catalog id...
Dieter
On Wednesday 03 July 2002 12:14, Ben Avery wrote:
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?
this might help http://www.zope.org/Members/kedai/BuildSimpleZClass
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 )
-- http://www.kedai.com.my/ http://www.kedai.com.my/eZine http://www.zope.org/Members/kedai http://www.my-zope.org Get the Tables!
participants (4)
-
Bakhtiar A Hamid -
Ben Avery -
Dieter Maurer -
douwe@oberon.nl