Re: [Zope] ZCatalog raises index out of range exception error
On Tue, 19 Dec 2000, Marcin Kasperski wrote: > Partial solution: at something like 2:00 AM delete your SiteRoot rule, > reindex with ZCatalog and create this rule again. Searching works > (although I needed to edit the paths found a bit in the form responsilbe > for search results presentation). You don't need to delete your SiteRoot. You can use one of techniques described in SiteRoot docs to suppress it within particular request. I use trick with phantom folder, call it 'Z'. So my AccessRule looks like: Is there a path, and does it start with 'Z'? Get rid of 'Z': Put it back logically: Is the first-level domain 'hotsite.com'? Ignore sub-domains and port number. Add physical root: In my SiteRoot, I have all properties left blank. When I access my server using URL like www.myserver.com/Z/something, then SiteRoot is turned off. With this solution, your site may be still accessible to customers, while you are working without SiteRoot (i.e. cataloging objects). [EMAIL PROTECTED] /--\ | `long long long' is too long for GCC | \--/ ___ Zope maillist - [EMAIL PROTECTED] 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 )
Re: [Zope] ZCatalog raises index out of range exception error
> > I believe I saw this error when > > trying to use the Catalog in a SiteRoot-ed folder... > > Me too :-( > And me too. The most irritating Zope bug for me. > > No solution, sorry ;) > > :-( > Partial solution: at something like 2:00 AM delete your SiteRoot rule, reindex with ZCatalog and create this rule again. Searching works (although I needed to edit the paths found a bit in the form responsilbe for search results presentation). I can imagine writing the script (XMLRPC?) which would do it from the cron job - although I have not yet found spare time (I still think someone will do something with this nasty bug). -- http://www.mk.w.pl / Marcin.Kasperski | Dokumentację kodu warto wygenerować: @softax.com.pl | http://www.mk.w.pl/narzedzia/narzedzia_gendoc @bigfoot.com \ ___ Zope maillist - [EMAIL PROTECTED] 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 )
Re: [Zope] ZCatalog raises index out of range exception error
On Saturday 16 December 2000, at 19 h 21, the keyboard of "Stefan H. Holek" <[EMAIL PROTECTED]> wrote: > Do you have a SiteRoot-ed environment? I do. > I believe I saw this error when > trying to use the Catalog in a SiteRoot-ed folder... Me too :-( > No solution, sorry ;) :-( ___ Zope maillist - [EMAIL PROTECTED] 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 )
Re: [Zope] ZCatalog raises index out of range exception error
Stefan H. Holek writes: > Do you have a SiteRoot-ed environment? I believe I saw this error when > trying to use the Catalog in a SiteRoot-ed folder... > > No solution, sorry ;) We use the Catalog together with a SiteRoot without problems. I remove the host part of the URL before I index the object. Dieter PS: Sorry! After writing, I recognized that we make only restricted use of SiteRoots: we just change the host part but not the path part. As a result, the URL's only differ in the host part. The locally (wrt. the host) absolute URL's of an object are equal for all virtual domains. Therefore, removing the host part works out restricted use. The general case, where the path part is different for each virtual host, is more difficult. I would probably go for a separate catalog for each virtual host and ensure that the URL's with which the objects are indexed are the URL's for this virtual host. This may require, that indexing is done in this same virtual host environment. ___ Zope maillist - [EMAIL PROTECTED] 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 )
Re: [Zope] ZCatalog raises index out of range exception error
On Fri, 15 Dec 2000, Martin Winkler wrote: > On a client's server I created a ZCatalog, but when using "Find Items to > ZCatalog" and clicking on "Find" in the form, Zope raises the "list index > out of range" error shown in detail at the end of this e-mail. Then I took > the whole Data.fs, put it on one of our servers, where everything worked as > usual. Do you have a SiteRoot-ed environment? I believe I saw this error when trying to use the Catalog in a SiteRoot-ed folder... No solution, sorry ;) Stefan ___ Zope maillist - [EMAIL PROTECTED] 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 )
[Zope] ZCatalog raises index out of range exception error
Hi listies, On a client's server I created a ZCatalog, but when using "Find Items to ZCatalog" and clicking on "Find" in the form, Zope raises the "list index out of range" error shown in detail at the end of this e-mail. Then I took the whole Data.fs, put it on one of our servers, where everything worked as usual. Since our client wants to create various ZCatalogs, he has to use this functionality :-/ Any ideas where to start looking for the reason of this error? Our client's server's configuration is the following: Zope version: Zope 2.2.4 (source release, python 1.5.2, linux2) [ I have also tried with 2.2.2 source] Python version: 1.5.2 (#1, Aug 25 2000, 09:33:37) [GCC 2.96 2731 (experimental)] System Platform: linux-i386 [RedHat 7.0] Any help is greatly appreciated! Martin ___ Here is the output when I submit the form "Find Items to ZCatalog": Error Type: IndexError Error Value: list index out of range Traceback (innermost last): File /usr/local/Zope-2.2.4-src/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /usr/local/Zope-2.2.4-src/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/local/Zope-2.2.4-src/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: Traversable) File /usr/local/Zope-2.2.4-src/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/local/Zope-2.2.4-src/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: manage_catalogFoundItems) File /usr/local/Zope-2.2.4-src/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: manage_catalogFoundItems) File /usr/local/Zope-2.2.4-src/lib/python/Products/ZCatalog/ZCatalog.py, line 321, in manage_catalogFoundItems (Object: Traversable) IndexError: (see above) ___ Zope maillist - [EMAIL PROTECTED] 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 )