Re: [Zope] overriding manage_beforeDelete in a CatalogAware Product

2000-11-17 Thread Andy McKay
But I'm confused about how to get rid of the index entry upon delete. I think I need to set the catalog name and then call the inherited manage_beforeDelete routine. So I tried this: def manage_beforeDelete(self, item, container): "Be sure we unindex ourselves from our special

Re: [Zope] overriding manage_beforeDelete in a CatalogAware Product

2000-11-17 Thread Dennis Nichols
At 11/17/00 09:04 AM, Andy McKay wrote: But I'm confused about how to get rid of the index entry upon delete... You should just be able to do "self.manage_beforeDelete(..)" since you have inherited all CatalogAware's methods. Make sure you have CatalogAware as your first (left most) item in

[Zope] overriding manage_beforeDelete in a CatalogAware Product

2000-11-16 Thread Dennis Nichols
I think I need help in overriding the manage_beforeDelete method from CatalogAware. Just to be sure I'm asking the right question, here's the background: I have a Product (in Python, not TTW) whose instances get cataloged in a separate ZCatalog called CommentCatalog. My product's class