[Zope] getPhysicalPath() returns list inside a tuple!!! zope bug?

Dieter Maurer dieter@handshake.de
Thu, 4 Apr 2002 22:16:29 +0200


fsdklj fdsl writes:
 > ....
 > when I try to index a custom product
 > i made, this error comes out
 > 
 >     (Object: catalog)
 >   File ./lib/python/Products/ZCatalog/Catalog.py, line
 > 296, in catalogObject
 >   File
 > /usr/local/zope/lib/python/Products/PluginIndexes/PathIndex/PathIndex.py,
 > line 100, in index_object
 >     (Object: path)
 > TypeError: sequence item 4: expected string, list
 > found
 > ....
 > PP: ('', 'sites', 'simplesky', 'AAA', 'maindata',
 > ['.en', '.en'], '.creation')
 > path-> ('', 'sites', 'simplesky', 'AAA', 'maindata',
 > ['.en', '.en'], '.creation')
Probably, there is something wrong with your product.

  "getPhysicalPath" essentially returns:

      container.getPhysicalPath() + (self.getId(),)

  Where "container" is the container of "self", i.e.
  "self.aq_inner.aq_parent".

I expect, you have a "getId" method which behaves strangely.


Dieter