[Zope-dev] In 'unindex_object': path is an OOSet, not a string

Jean Jordaan jean@upfrontsystems.co.za
Fri, 27 Sep 2002 10:49:35 +0200


Hi all

I'm getting an error when calling 'unindex_object'::

Error Type: AttributeError
Error Value: split

   File 
/usr/local/zope/2-5-1/lib/python/Products/PluginIndexes/PathIndex/PathIndex.py, 
line 151, in unindex_object
     (Object: path)

From
.../zope/2-5-1/lib/python/Products/PluginIndexes/PathIndex/PathIndex.py
::

     def unindex_object(self,documentId):
         """ hook for (Z)Catalog """

         if not self._unindex.has_key(documentId):
             return

         path = self._unindex[documentId]
         comps = path.split('/')

At the point when 'comps = path.split('/')' is called, the value of
'path' is: OOSet([('Reminders', 0)])

This does not look as though it was ever supposed to happen.

-- 
Jean Jordaan
Upfront Systems                         http://www.upfrontsystems.co.za