[Checkins] SVN: CMF/trunk/C - CMFUid.UniqueIdHandlerTool: Touching the internal UID value on a

Jens Vagelpohl jens at dataflake.org
Sun Mar 4 16:03:51 EST 2007


Log message for revision 72975:
  - CMFUid.UniqueIdHandlerTool: Touching the internal UID value on a
    content item will not cause reindexing all indices anymore, only the
    specific UID index will be touched.
    (http://www.zope.org/Collectors/CMF/469)
  

Changed:
  U   CMF/trunk/CHANGES.txt
  U   CMF/trunk/CMFUid/UniqueIdHandlerTool.py

-=-
Modified: CMF/trunk/CHANGES.txt
===================================================================
--- CMF/trunk/CHANGES.txt	2007-03-04 20:50:42 UTC (rev 72974)
+++ CMF/trunk/CHANGES.txt	2007-03-04 21:03:50 UTC (rev 72975)
@@ -22,6 +22,11 @@
 
   Bug Fixes
 
+    - CMFUid.UniqueIdHandlerTool: Touching the internal UID value on a
+      content item will not cause reindexing all indices anymore, only the
+      specific UID index will be touched.
+      (http://www.zope.org/Collectors/CMF/469)
+
     - CMFCore.MembershipTool: Fixed inconsistent behavior where member lookup
       would take all user folders up to the Zope root into account whereas
       member area creation would not.

Modified: CMF/trunk/CMFUid/UniqueIdHandlerTool.py
===================================================================
--- CMF/trunk/CMFUid/UniqueIdHandlerTool.py	2007-03-04 20:50:42 UTC (rev 72974)
+++ CMF/trunk/CMFUid/UniqueIdHandlerTool.py	2007-03-04 21:03:50 UTC (rev 72975)
@@ -86,7 +86,7 @@
             catalog.addColumn(UID_ATTRIBUTE_NAME)
 
         # reindex
-        catalog.reindexObject(obj)
+        catalog.reindexObject(obj, idxs=[UID_ATTRIBUTE_NAME])
 
     def _setUid(self, obj, uid):
         """Attaches a unique id to the object and does reindexing.



More information about the Checkins mailing list