Submitted by : FrankLaurijssens at: 2006-04-07T04:33:53+00:00 (11 years ago)
Name :
Category : Severity : Status :
Optional subject :  
Optional comment :

If you want to rebuild the catalog through the ZMI (Find and Catalog) and you include the ZWiki Outline Cache you get:

Traceback (innermost last):
  Module ZPublisher.Publish, line 101, in publish
  Module ZPublisher.mapply, line 88, in mapply
  Module ZPublisher.Publish, line 39, in call_object
  Module Products.ZCatalog.ZCatalog, line 336, in manage_catalogFoundItems
  Module Products.ZCatalog.ZCatalog, line 784, in ZopeFindAndApply
  Module Products.ZCatalog.ZCatalog, line 528, in catalog_object
  Module Products.ZCatalog.Catalog, line 360, in catalogObject
  Module Products.ZCatalog.Catalog, line 298, in updateMetadata
  Module Products.ZCatalog.Catalog, line 437, in recordify
TypeError: parents() takes exactly 2 arguments (1 given)

If you deselect Zwiki Outline Cache, the rebuild works as expected.

... --EmmaLaurijssens, Fri, 07 Apr 2006 04:40:43 -0700 reply

See also http://dev.plone.org/plone/ticket/5412

fixed for 0.52.1 --simon, Sat, 08 Apr 2006 12:13:46 -0700 reply

Status: open => closed

Thanks. This is more of a workaround, I'd like to know how to tell zcatalog to ignore the outline.:

def parents(self,node=None):
   """
   Return a nesting/list representing node's immediate parents.
   """
   #XXX temporary nasty kludge: there seems no obvious way to prevent
   #zcatalog from trying to index this object, calling any methods
   #which (like this one) match catalog index names, when a user does
   #find all objects. So don't break when that happens.
   if not node: return None
   else: return self.parentmap().get(node,[])[:]

... --betabug, Wed, 21 Feb 2007 08:55:22 +0000 reply

Name: '#1246 noelia' => '#1246 TypeError?: parents() takes exactly 2 arguments (1 given) when rebuilding catalog' Category: user-purplenumbers => admin-configuring Severity: serious => normal