[Zope-CMF] [Bug] Re: [Zope] Portal_catalog and Reindex
Dieter Maurer
dieter@handshake.de
Thu, 21 Feb 2002 22:24:43 +0100
--ItiEP2mkbk
Content-Type: text/plain; charset=us-ascii
Content-Description: message body text
Content-Transfer-Encoding: 7bit
Pascal Samuzeau writes:
> ... reindexing throws TypeError, unrecognized keyword argument ...
> ...
> OK, I hav installed Zope 2.5, with the latest CMF1.2 just this morning
> I've made a copy of the Data.fs, and tried to re-index.
>
> Sorry, but I've got the same error as before.
> > Finally, I may be able to send you a patch.
> >
>
> Yes, If you send me a patch, I will take it
Attached...
Dieter
--ItiEP2mkbk
Content-Type: text/x-patch
Content-Description: Patch for PortalCatalog reindexing bug
Content-Disposition: inline;
filename="CatTool_241.pat"
Content-Transfer-Encoding: 7bit
--- CMFCore/CatalogTool.py~ Wed Jun 6 03:32:21 2001
+++ CMFCore/CatalogTool.py Wed Nov 14 20:54:13 2001
@@ -261,7 +261,7 @@
manage_catalogFind = DTMLFile( 'catalogFind', _dtmldir )
- def catalog_object(self, object, uid):
+ def catalog_object(self, object, uid, idxs=[]):
# Wraps the object with workflow and accessibility
# information just before cataloging.
wf = getattr(self, 'portal_workflow', None)
@@ -270,7 +270,7 @@
else:
vars = {}
w = IndexableObjectWrapper(vars, object)
- ZCatalog.catalog_object(self, w, uid)
+ ZCatalog.catalog_object(self, w, uid, idxs)
security.declarePrivate('indexObject')
def indexObject(self, object):
--ItiEP2mkbk--