Zope 2.7 b3 problem with reindexing catalog
If I try to reindex a (plone) portal_catalog I get the following error Traceback (innermost last): * Module ZPublisher.Publish, line 100, in publish * Module ZPublisher.mapply, line 88, in mapply * Module ZPublisher.Publish, line 40, in call_object * Module Products.ZCatalog.ZCatalog, line 474, in manage_reindexIndex * Module Products.ZCatalog.ZCatalog, line 459, in reindexIndex TypeError: catalog_object() got an unexpected keyword argument 'update_metadata' Display traceback as text -- mit freundlichen Grüssen Robert Rottermann www.redCOR.ch
I can not reproduce this. Can you give us detailed description how to reproduce it or track it down on your own? -aj --On Mittwoch, 19. November 2003 17:15 Uhr +0100 robert <robert@redcor.ch> wrote:
If I try to reindex a (plone) portal_catalog I get the following error
Traceback (innermost last):
* Module ZPublisher.Publish, line 100, in publish * Module ZPublisher.mapply, line 88, in mapply * Module ZPublisher.Publish, line 40, in call_object * Module Products.ZCatalog.ZCatalog, line 474, in manage_reindexIndex * Module Products.ZCatalog.ZCatalog, line 459, in reindexIndex
TypeError: catalog_object() got an unexpected keyword argument 'update_metadata'
Display traceback as text
I did not track it down really, but "fixed" it by removing the update_metadata argument in ZCatalog.py on line 459. What I did is creating a Plone Site, and then went to portal_catalog.indexes and reindexed all indices. I am at home now, where I do not have 2.7 installed. Robert Am Mittwoch, 19. November 2003 17:40 schrieb Andreas Jung:
I can not reproduce this. Can you give us detailed description how to reproduce it or track it down on your own?
-aj
--On Mittwoch, 19. November 2003 17:15 Uhr +0100 robert <robert@redcor.ch>
wrote:
If I try to reindex a (plone) portal_catalog I get the following error
Traceback (innermost last):
* Module ZPublisher.Publish, line 100, in publish * Module ZPublisher.mapply, line 88, in mapply * Module ZPublisher.Publish, line 40, in call_object * Module Products.ZCatalog.ZCatalog, line 474, in manage_reindexIndex * Module Products.ZCatalog.ZCatalog, line 459, in reindexIndex
TypeError: catalog_object() got an unexpected keyword argument 'update_metadata'
Display traceback as text
-- mit freundlichen Grüssen Robert Rottermann www.redCOR.ch
I did some more investigation: The problem does occur when a CMF portal_catalog is reindexed. It does not happen with plain catalog Robert Am Mittwoch, 19. November 2003 17:40 schrieb Andreas Jung:
I can not reproduce this. Can you give us detailed description how to reproduce it or track it down on your own?
-aj
--On Mittwoch, 19. November 2003 17:15 Uhr +0100 robert <robert@redcor.ch>
wrote:
If I try to reindex a (plone) portal_catalog I get the following error
Traceback (innermost last):
* Module ZPublisher.Publish, line 100, in publish * Module ZPublisher.mapply, line 88, in mapply * Module ZPublisher.Publish, line 40, in call_object * Module Products.ZCatalog.ZCatalog, line 474, in manage_reindexIndex * Module Products.ZCatalog.ZCatalog, line 459, in reindexIndex
TypeError: catalog_object() got an unexpected keyword argument 'update_metadata'
Display traceback as text
-- mit freundlichen Grüssen Robert Rottermann www.redCOR.ch
Probably you're trying to index non-CMF non-plone objects - you can get a similar error with plain CMF if you have non-CMF objects that you try to index. I think what you have to do is clear the catalog and then use the 'find objects' page to reindex, only select the object types which are plone/CMF. On Thursday, November 20, 2003, at 12:28 AM, robert wrote:
I did some more investigation: The problem does occur when a CMF portal_catalog is reindexed. It does not happen with plain catalog Robert
Am Mittwoch, 19. November 2003 17:40 schrieb Andreas Jung:
I can not reproduce this. Can you give us detailed description how to reproduce it or track it down on your own?
-aj
--On Mittwoch, 19. November 2003 17:15 Uhr +0100 robert <robert@redcor.ch>
wrote:
If I try to reindex a (plone) portal_catalog I get the following error
Traceback (innermost last):
* Module ZPublisher.Publish, line 100, in publish * Module ZPublisher.mapply, line 88, in mapply * Module ZPublisher.Publish, line 40, in call_object * Module Products.ZCatalog.ZCatalog, line 474, in manage_reindexIndex * Module Products.ZCatalog.ZCatalog, line 459, in reindexIndex
TypeError: catalog_object() got an unexpected keyword argument 'update_metadata'
Display traceback as text
-- mit freundlichen Grüssen
Robert Rottermann www.redCOR.ch
_______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Thanks for your answer, The error happens with a plain CMF site freshly installed. So there are no "unruly" objects to reindex. Robert Am Sonntag, 23. November 2003 19:04 schrieb Marc Lindahl:
Probably you're trying to index non-CMF non-plone objects - you can get a similar error with plain CMF if you have non-CMF objects that you try to index. I think what you have to do is clear the catalog and then use the 'find objects' page to reindex, only select the object types which are plone/CMF.
On Thursday, November 20, 2003, at 12:28 AM, robert wrote:
I did some more investigation: The problem does occur when a CMF portal_catalog is reindexed. It does not happen with plain catalog Robert
Am Mittwoch, 19. November 2003 17:40 schrieb Andreas Jung:
I can not reproduce this. Can you give us detailed description how to reproduce it or track it down on your own?
-aj
--On Mittwoch, 19. November 2003 17:15 Uhr +0100 robert <robert@redcor.ch>
wrote:
If I try to reindex a (plone) portal_catalog I get the following error
Traceback (innermost last):
* Module ZPublisher.Publish, line 100, in publish * Module ZPublisher.mapply, line 88, in mapply * Module ZPublisher.Publish, line 40, in call_object * Module Products.ZCatalog.ZCatalog, line 474, in manage_reindexIndex * Module Products.ZCatalog.ZCatalog, line 459, in reindexIndex
TypeError: catalog_object() got an unexpected keyword argument 'update_metadata'
Display traceback as text
-- mit freundlichen Grüssen
Robert Rottermann www.redCOR.ch
_______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
-- mit freundlichen Grüssen Robert Rottermann www.redCOR.ch
robert wrote at 2003-11-24 05:32 +0100:
...
Traceback (innermost last):
* Module ZPublisher.Publish, line 100, in publish * Module ZPublisher.mapply, line 88, in mapply * Module ZPublisher.Publish, line 40, in call_object * Module Products.ZCatalog.ZCatalog, line 474, in manage_reindexIndex * Module Products.ZCatalog.ZCatalog, line 459, in reindexIndex
TypeError: catalog_object() got an unexpected keyword argument 'update_metadata'
"update_metadata" is a new keyword argument introduced recently (to fix a bug in Zope 2.6.2). Apparently, you have hit a bug in "ZCatalog": While "reindexIndex" already uses the new argument, "catalog_object" does not yet support it. -- Dieter
Dieter Maurer wrote:
robert wrote at 2003-11-24 05:32 +0100:
Traceback (innermost last):
* Module ZPublisher.Publish, line 100, in publish * Module ZPublisher.mapply, line 88, in mapply * Module ZPublisher.Publish, line 40, in call_object * Module Products.ZCatalog.ZCatalog, line 474, in manage_reindexIndex * Module Products.ZCatalog.ZCatalog, line 459, in reindexIndex
TypeError: catalog_object() got an unexpected keyword argument 'update_metadata'
"update_metadata" is a new keyword argument introduced recently (to fix a bug in Zope 2.6.2).
Apparently, you have hit a bug in "ZCatalog":
While "reindexIndex" already uses the new argument, "catalog_object" does not yet support it.
Yes. CMF's CatalogTool inherits from ZCatalog and overrides catalog_object. Robert, please report this to the Zope and the CMF Collector: - Zope's ZCatalog should have a capability check in reindexIndex. (Zope-2_6-branch, Zope-2_7-branch and HEAD) - CMF's CatalogTool should implement the new Interface. Cheers, Yuppie
I will report a bug Robert Am Dienstag, 25. November 2003 08:25 schrieb Yuppie:
Dieter Maurer wrote:
robert wrote at 2003-11-24 05:32 +0100:
> Traceback (innermost last): > > * Module ZPublisher.Publish, line 100, in publish > * Module ZPublisher.mapply, line 88, in mapply > * Module ZPublisher.Publish, line 40, in call_object > * Module Products.ZCatalog.ZCatalog, line 474, in > manage_reindexIndex > * Module Products.ZCatalog.ZCatalog, line 459, in reindexIndex > > TypeError: catalog_object() got an unexpected keyword argument > 'update_metadata'
"update_metadata" is a new keyword argument introduced recently (to fix a bug in Zope 2.6.2).
Apparently, you have hit a bug in "ZCatalog":
While "reindexIndex" already uses the new argument, "catalog_object" does not yet support it.
Yes. CMF's CatalogTool inherits from ZCatalog and overrides catalog_object.
Robert, please report this to the Zope and the CMF Collector:
- Zope's ZCatalog should have a capability check in reindexIndex. (Zope-2_6-branch, Zope-2_7-branch and HEAD) - CMF's CatalogTool should implement the new Interface.
Cheers, Yuppie
_______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
-- mit freundlichen Grüssen Robert Rottermann www.redCOR.ch
I opened an issue in the Zope collector but I am to dumb to find the CMF collector. If somebody please points me to it. Robert Am Dienstag, 25. November 2003 08:25 schrieb Yuppie:
Dieter Maurer wrote:
robert wrote at 2003-11-24 05:32 +0100:
> Traceback (innermost last): > > * Module ZPublisher.Publish, line 100, in publish > * Module ZPublisher.mapply, line 88, in mapply > * Module ZPublisher.Publish, line 40, in call_object > * Module Products.ZCatalog.ZCatalog, line 474, in > manage_reindexIndex > * Module Products.ZCatalog.ZCatalog, line 459, in reindexIndex > > TypeError: catalog_object() got an unexpected keyword argument > 'update_metadata'
"update_metadata" is a new keyword argument introduced recently (to fix a bug in Zope 2.6.2).
Apparently, you have hit a bug in "ZCatalog":
While "reindexIndex" already uses the new argument, "catalog_object" does not yet support it.
Yes. CMF's CatalogTool inherits from ZCatalog and overrides catalog_object.
Robert, please report this to the Zope and the CMF Collector:
- Zope's ZCatalog should have a capability check in reindexIndex. (Zope-2_6-branch, Zope-2_7-branch and HEAD) - CMF's CatalogTool should implement the new Interface.
Cheers, Yuppie
_______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
-- mit freundlichen Grüssen Robert Rottermann www.redCOR.ch
robert wrote:
I opened an issue in the Zope collector but I am to dumb to find the CMF collector.
If somebody please points me to it.
<http://collector.zope.org/CMF> or <http://zope.org/Collectors/CMF> Yuppie
On Wed, 19 Nov 2003 17:15:13 +0100 robert <robert@redcor.ch> wrote:
If I try to reindex a (plone) portal_catalog I get the following error
Traceback (innermost last):
* Module ZPublisher.Publish, line 100, in publish * Module ZPublisher.mapply, line 88, in mapply * Module ZPublisher.Publish, line 40, in call_object * Module Products.ZCatalog.ZCatalog, line 474, in manage_reindexIndex * Module Products.ZCatalog.ZCatalog, line 459, in reindexIndex
TypeError: catalog_object() got an unexpected keyword argument 'update_metadata'
Display traceback as text
What version of Zope? I think you need to use 2.6.2+ which has this argument. -Casey
I am using 2.7 from cvs robert Am Mittwoch, 19. November 2003 17:56 schrieb Casey Duncan:
On Wed, 19 Nov 2003 17:15:13 +0100
robert <robert@redcor.ch> wrote:
If I try to reindex a (plone) portal_catalog I get the following error
Traceback (innermost last):
* Module ZPublisher.Publish, line 100, in publish * Module ZPublisher.mapply, line 88, in mapply * Module ZPublisher.Publish, line 40, in call_object * Module Products.ZCatalog.ZCatalog, line 474, in manage_reindexIndex * Module Products.ZCatalog.ZCatalog, line 459, in reindexIndex
TypeError: catalog_object() got an unexpected keyword argument 'update_metadata'
Display traceback as text
What version of Zope? I think you need to use 2.6.2+ which has this argument.
-Casey
-- mit freundlichen Grüssen Robert Rottermann www.redCOR.ch
participants (6)
-
Andreas Jung -
Casey Duncan -
Dieter Maurer -
Marc Lindahl -
robert -
Yuppie