How to reindex in catalog from external method?
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. Thanks in advance -- Helge Tesdal tesdal@stud.ntnu.no
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 ---------------------------------------------
On Sun, 26 Mar 2000, Martijn Pieters wrote:
You are not calling the reindex method, you are only referencing it without doing anything with it. Change it to:
self.reindex_object()
Thanks, it worked. In retrospect it's pretty obivous, but I didn't think of it. :) -- Happy-Helge tesdal@stud.ntnu.no
participants (2)
-
Helge Tesdal -
Martijn Pieters