[Zope-dev] ZCatalog and SiteRoot

Hans Rauch hrauch@help-pi.f.shuttle.de
Mon, 28 Aug 2000 11:36:18 +0200


Problem:

If I use ZCatalog without SiteRoot, I don't have any problems. 
But if I try to use ZCatalog with a virtual host (by SiteRoot),
I'm not able to "Find items to ZCatalog":

ErrorType: IndexError
Error Value: list index out of range

The error occurs on line 321 from ZCatalog.py

---------------------------------------------

Solution:

With the following patch I can use ZCatalog with virtual hosts (by
SiteRoot):

        try :
          path=urllib.unquote(string.split(URL2, REQUEST.script)[1])
        except :
          path=urllib.unquote(URL2)

Hans

-- 
-----------------------------------
HeLP PI Frankfurt
Hans Rauch
Gutleutstr. 8-12, 60329 Frankfurt/M
Tel 069 / 2568 - 335  Fax - 320
hrauch@help-pi.f.shuttle.de
-----------------------------------