ZCatalog programatically? Or ZClass with ZCatalog base?
Greetings. I'm creating product using ZClasses, which is basically a container full of various sub objects. I want to use a ZCatalog to index these various objects. In my main container class' constructor, I seem to be unable to create a ZCatalog instance (manage_addZCatalog gives a name error, and it doesn't appear in the method lists in my patched online help). Is it possible to create a ZCatalog object from a ZClass constructor? The alternative might be a better option to go with anyway - use ZCatalog as the base class for my container ZClass. However, ZCatalog already appears to be a folderish object and I don't know if using it in this fashion will break anything (or break in a future version). I'm also unsure if doing this will screw up folder aware objects in future revisions of Zope (I have my private ZCatalog for indexing, but there shouldn't be anything stopping webmasters indexing my objects with their central ZCatalog). I wanted to avoid having the people creating instances of the ZClass having to create ZCatalog objects or reconfigure existing ones. ___ // Zen (alias Stuart Bishop) Work: zen@cs.rmit.edu.au // E N Senior Systems Alchemist Play: zen@shangri-la.dropbear.id.au //__ Computer Science, RMIT WWW: http://www.cs.rmit.edu.au/~zen
participants (1)
-
Stuart 'Zen' Bishop