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 -----------------------------------
---------------------------------------------
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
I tried applying that to Zope 2.2.0 and it does not work: - Find Items works - and shows new pages - but shows them differently (http://my.host.name/publicdir/page instead of /zopedir/page) - after clicking Update Catalog new items of this form just disappeared So I returned to usual 'remove SiteRoot', 'Find Items', 'Add SiteRoot' practice :-( -- Serwis dla programistów, kącik mieszkaniowy: http://www.mk.w.pl | | Systems built by humans are always subject to human error. (Parnas) | |
participants (2)
-
Hans Rauch -
Marcin Kasperski