[CMF-checkins] CVS: CMF/CMFCore/interfaces - portal_catalog.py:1.5

Florent Guillaume fg@nuxeo.com
Mon, 1 Jul 2002 11:09:33 -0400


Update of /cvs-repository/CMF/CMFCore/interfaces
In directory cvs.zope.org:/tmp/cvs-serv8171/CMFCore/interfaces

Modified Files:
	portal_catalog.py 
Log Message:
Added an optional idxs argument to reindexObject to ask it to only
update specific indexes. This will be helpful to only reindex
allowedRolesAndUsers when local roles change.


=== CMF/CMFCore/interfaces/portal_catalog.py 1.4 => 1.5 ===
 
     # reindexObject__roles__ = ()
-    def reindexObject(object):
+    def reindexObject(object, idxs=[]):
         '''Update entry in catalog.
+        The optional idxs argument is a list of specific indexes
+        to update (all of them by default).
         '''
 
     # getpath inherits security assertions from ZCatalog.