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

Andreas Jung Andreas Jung <lists@andreas-jung.com>
Fri, 27 Sep 2002 10:56:57 +0200


please submit a collector issue and if possible add
a small unittest that reproduces the problem.

-aj

--On Freitag, 27. September 2002 10:49 +0200 Jean Jordaan 
<jean@upfrontsystems.co.za> wrote:

> 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/PathInd
> ex.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
>
>
>
> _______________________________________________
> Zope-Dev maillist  -  Zope-Dev@zope.org
> http://lists.zope.org/mailman/listinfo/zope-dev
> **  No cross posts or HTML encoding!  **
> (Related lists -  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope )