[Zope-Coders] Re: [Zope-Checkins] CVS: Zope/lib/python/Products/PluginIndexes/PathIndex - PathIndex.py:1.15.16.4

Chris Withers chrisw@nipltd.com
Tue, 24 Sep 2002 13:20:42 +0100


Perhaps a unit test would have highlighted this before it was checked in?

Chris

Andreas Jung wrote:
> Update of /cvs-repository/Zope/lib/python/Products/PluginIndexes/PathIndex
> In directory cvs.zope.org:/tmp/cvs-serv26557/lib/python/Products/PluginIndexes/PathIndex
> 
> Modified Files:
>       Tag: Zope-2_5-branch
> 	PathIndex.py 
> Log Message:
> Collector #593: fix for the fix: we must return an IISet() instance
> instead of the complete IOBTree
> 
> 
> === Zope/lib/python/Products/PluginIndexes/PathIndex/PathIndex.py 1.15.16.3 => 1.15.16.4 ===
> --- Zope/lib/python/Products/PluginIndexes/PathIndex/PathIndex.py:1.15.16.3	Mon Sep 23 12:43:34 2002
> +++ Zope/lib/python/Products/PluginIndexes/PathIndex/PathIndex.py	Tue Sep 24 07:26:27 2002
> @@ -206,7 +206,7 @@
>          comps = self.splitPath(path)
>  
>          if len(comps) == 0: 
> -            return self._unindex        
> +            return IISet(self._unindex.keys())       
>  
>          if level >=0:
>  
> 
> 
> _______________________________________________
> Zope-Checkins maillist  -  Zope-Checkins@zope.org
> http://lists.zope.org/mailman/listinfo/zope-checkins
> 
>