[Zope-dev] PathIndex doesn't index last part of path

Andy McKay andy@agmweb.ca
Sun, 18 Aug 2002 12:25:52 -0700


Woohoo my first check in ;)
--
  Andy McKay
  Agmweb Consulting
  http://www.agmweb.ca


----- Original Message -----
From: "Casey Duncan" <casey@zope.com>
To: "Andy McKay" <andy@agmweb.ca>; <zope-dev@zope.org>
Sent: Saturday, August 17, 2002 12:14 PM
Subject: Re: [Zope-dev] PathIndex doesn't index last part of path


> Your code looks fine, I think it meshes better with the underlying catalog
> code too. I don't have a problem with this getting checked in, just make
> sure you update IZCatalog.py, help/Catalog.py and add unit tests (that
pass
> ;^).
>
> -Casey
>
> ----- Original Message -----
> From: "Andy McKay" <andy@agmweb.ca>
> To: "Casey Duncan" <casey@zope.com>; <zope-dev@zope.org>
> Sent: Sunday, August 18, 2002 2:54 AM
> Subject: Re: [Zope-dev] PathIndex doesn't index last part of path
>
>
> > > If you call getObject, that actually does traversal anyway.
> >
> > Right, in that situation it would be pointless...
> >
> > You rock, Casey, thanks. I was thinking more about adding:
> >
> > def getMetadataFromPath(self, path):
> >     """ get metadata for an object using its path """
> >     rid = self._catalog.uids[path]
> >     return self._catalog.getMetadataForRID(rid)
> >
> > def getIndexFromPath(self, path):
> >     """ get index for an object using its path """
> >     rid = self._catalog.uids[path]
> >     return self._catalog.getIndexDataForRID(rid)
> >
> > Since this uses the same terminology and returns the same data as
> > getIndexDataForRID and getMetadataDataForRID. Is there any reason why I
> > couldn't checked these in?
> > --
> >   Andy McKay
> >   Agmweb Consulting
> >   http://www.agmweb.ca
> >
> >
> >
> >
>
>
> _______________________________________________
> Zope-Dev maillist  -  Zope-Dev@zope.org
> http://lists.zope.org/mailman/listinfo/zope-dev
> **  No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope )
>