[Zope] AW: [Zope-dev] Re: [Zope] ZCatalog Find Items broken i n ZOPE 2.1? FIXED!

Michel Pelletier michel@digicool.com
Wed, 19 Jan 2000 11:10:25 -0500


> -----Original Message-----
> From: Markus Strickler [mailto:mstrickler@gmx.de]
> Sent: Wednesday, January 19, 2000 4:10 AM
> To: Stephen Pitts
> Cc: Jason Spisak; Brian Lloyd; zope-dev@zope.org; zope@zope.org
> Subject: [Zope] AW: [Zope-dev] Re: [Zope] ZCatalog Find Items 
> broken in
> ZOPE 2.1? FIXED!
> 
> 
> Did you follow the discussion about / and id in ZCatalog?
> I haven't checked whether the apply_path bug has been fixed 
> in the cvs as
> well.

This was fixed along with an earlier bug in the code.  Thanks for the
patch.

-Michel

> > I just got hit by this as well. The culprit is in line 536 of
> > lib/python/Products/ZCatalog/ZCatalog.py:
> >
> > apply_func(ob, (apply_path+'/'+p))
> >
> > If apply_path is null, then an extra '/' is prepended to p 
> (the object's
> > path) for no apparent reason. A quick fix is to replace this with:
> >
> > if apply_path:
> > 	apply_func(ob, (apply_path+'/'+p))
> > else:
> > 	apply_func(ob, p)
> >
> > A patch to that effect is attached
> > --
> > Stephen Pitts
> > smpitts@midsouth.rr.com
> > webmaster - http://www.mschess.org
> >
> 
> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>