[Zope-dev] How to reindex in catalog from external method?
Martijn Pieters
mj@digicool.com
Sun, 26 Mar 2000 17:05:45 +0200
On Sun, Mar 26, 2000 at 03:15:48PM +0200, Helge Tesdal wrote:
> I'm having problems using reindex_object from external method.
>
> The external method is add_mp3 at /artist/track/add_mp3, and the code I
> use when trying to reindex is:
>
> self.reindex_object
>
> I don't get any errormessages, it just doesn't update the catalog. Am I
> trying to reindex the external method? self.id returns the id of track, so
> I assumed self.reindex_object tried to reindex the track.
You are not calling the reindex method, you are only referencing it without
doing anything with it. Change it to:
self.reindex_object()
--
Martijn Pieters
| Software Engineer mailto:mj@digicool.com
| Digital Creations http://www.digicool.com/
| Creators of Zope http://www.zope.org/
| The Open Source Web Application Server
---------------------------------------------