Hello, I solved my problems adding manage_editCataloger with the name of my ZCatalog when I add the object. I've also experimented with the order of the base classes and it doesn't seems to be of any relevancy, so your ZClass can derive from ZObject, JCObject, CatalogAwareBase or ZObject, CatalogAwareBase, JCObject but to make it working, you have to call the manage_editCataloger method in the constructor. regards, - mn
-----Original Message----- From: Marco Nova [mailto:nova@tera-it.com] Sent: Thursday, July 05, 2001 2:57 PM To: zope-dev@zope.org Subject: RE: [Zope-dev] ZClass and ZCatalog
Rename the catalog from 'events' to 'Catalog' and CatalogAwareBase should start working.
No, it doesn't work. I read from an HOW-TO that the problem may reside (beside the name of the catalog) that the first base class id JCObject and not CatalogAwareBase. Is it true ?
- mn
P.S.
I'm using Zope 2.3.3 on windows, binary release.
-----Original Message----- From: Marco Nova [mailto:nova@tera-it.com] Sent: Thursday, 05 July 2001 09:47 To: zope-dev@zope.org Subject: [Zope-dev] ZClass and ZCatalog
Hello Guys,
I've a problem with a ZClass (JCEvent) I've created and ZCatalog. Base classes for JCEvent are: ZObject, JCObject, CatalogAwareBase. JCObject is another ZClass whose base class is ZObject.
Instances of JCEvent are added to a ZCatalog but they are not automatically indexed by the catalog. The catalog is named 'events'. How can I automaticallly index them ?
Thanks,
- mn
_______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )