[Zope-CMF] Cataloging folder-based types
Andrew Sawyers
andrew@zope.com
Wed, 7 Nov 2001 10:34:45 -0500
You want to have a method manage_beforeDelete, you likely also want to ha=
ve
a reindexObject method.
See PortalContent for how they are implemented there.
Andrew
-----Original Message-----
From: zope-cmf-admin@zope.org [mailto:zope-cmf-admin@zope.org]On Behalf
Of Gitte Wange
Sent: Tuesday, November 06, 2001 12:39 PM
To: 'Jo=E3o Neves'; zope-cmf@zope.org
Subject: RE: [Zope-CMF] Cataloging folder-based types
On 6. november 2001 18:19, Jo=E3o Neves [SMTP:joao@fabricadeideias.com]
wrote:
> Hi all,
>
> I created a z-class based on the Portal Folder type which needs to be
> indexed in our portal catalog. In order to index it, I added a method
> 'indexObject' to which I refer whenever necessary which also works
> great. The problem is that I can't unindex an instance whenever I delet=
e
> an object. I've tried to create a 'manage_beforeDelete' method, which
> didn't work, I've tried altering the folder_delete method, I basically
> ran out of ideas. The type must derive from Portal Folder, since I need
> those characteristics (folderish, but with some added properties, views
> and methods).
>
> Any ideas on how to unindex my z-class upon deletion are highly
> appreciated!!
Well I also have created a portal type deriving from Portal Folder and it
get's indexed in the catalog perfectly well. The problems show up when
deleting the object. It isn't getting unindexed then ...
Someone on this list told me that I should let the class derive from
Portal Content ... but the class already does that ...
So CMF-Guru-Guys ... how do we unindex these folderish types ?? :-)
TIA,
Gitte Wange
_______________________________________________
Zope-CMF maillist - Zope-CMF@zope.org
http://lists.zope.org/mailman/listinfo/zope-cmf
See http://www.zope.org/Products/PTK/Tracker for bug reports and feature
requests