[Checkins] SVN: z3ext.pathindex/trunk/ Remove all proxies before trying to query int id for object.

Dan Korostelev nadako at gmail.com
Sun Feb 22 09:12:40 EST 2009


Log message for revision 97045:
  Remove all proxies before trying to query int id for object.
  XXX: Should this be moved to the IntIds utility itself?

Changed:
  U   z3ext.pathindex/trunk/CHANGES.txt
  U   z3ext.pathindex/trunk/src/z3ext/pathindex/index.py

-=-
Modified: z3ext.pathindex/trunk/CHANGES.txt
===================================================================
--- z3ext.pathindex/trunk/CHANGES.txt	2009-02-22 14:07:19 UTC (rev 97044)
+++ z3ext.pathindex/trunk/CHANGES.txt	2009-02-22 14:12:40 UTC (rev 97045)
@@ -2,6 +2,12 @@
 CHANGES
 =======
 
+1.0.2 (unreleased)
+------------------
+
+- Remove all proxies before trying to query int id for object.
+
+
 1.0.1 (2008-03-25)
 ------------------
 

Modified: z3ext.pathindex/trunk/src/z3ext/pathindex/index.py
===================================================================
--- z3ext.pathindex/trunk/src/z3ext/pathindex/index.py	2009-02-22 14:07:19 UTC (rev 97044)
+++ z3ext.pathindex/trunk/src/z3ext/pathindex/index.py	2009-02-22 14:12:40 UTC (rev 97045)
@@ -17,6 +17,7 @@
 """
 from zope import interface
 from zope.component import getUtility
+from zope.proxy import removeAllProxies
 from zope.traversing.api import getParents
 from zope.app.intid.interfaces import IIntIds
 from zc.catalog.index import SetIndex, parseQuery
@@ -39,7 +40,7 @@
 
         ids = []
         for ob in parents:
-            id = intid.queryId(ob)
+            id = intid.queryId(removeAllProxies(ob))
             if id is not None:
                 ids.append(id)
 



More information about the Checkins mailing list