[Zope-dev] bug in CatalogAwareness?

Steve Alexander steve@cat-box.net
Sun, 27 Aug 2000 13:31:25 +0100


Shane Hathaway wrote:

> 
> I was suspicious of the entire method so I wrote a replacement which is
> based on a new interface available in Zope.  I *think* it's correct,
> but it's a drastic change so it's only in the new PTK and nowhere
> else.  (This is slightly modified from PTK CVS.)
> 
>     def __url(self):
>         return string.join(self.getPhysicalPath(), '/')

The implementation of url() in CatalogAwareness.py in Zope 2.2.1 seems 
to ensure that there is a '/' at the start of the url that is given to 
the ZCatalog. I don't know how important that really is, though.

Perhaps your method should be changed to this:

def __url(self):
return '/'+string.join(self.getPhysicalPath(), '/')

--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net