[Zope] index error, list index out of range
Dieter Maurer
dieter at handshake.de
Wed Jun 4 14:57:35 EDT 2008
suhail shaik wrote at 2008-6-4 12:41 +0100:
> ...
>Traceback (innermost last):
>
> ....
> - Module zope.tal.talinterpreter, line 346, in interpret
> - Module zope.tal.talinterpreter, line 590, in do_setGlobal_tal
> - Module zope.tales.tales, line 696, in evaluate
> *URL: /news/SearchReport*
> *Line 79, Column 2*
> *Expression: <PythonExpr
> container.data.restrictedTraverse(storynb[0]).getChapterInfo(storynb[1],
> kfMax)>*
> ...
> - Module Products.PythonScripts.PythonScript, line 327, in _exec
> - Module None, line 26, in getChapterInfo
> *<PythonScript at /news/getChapterInfo used for /news/data/20071124>*
> *Line 26*
> - Module AccessControl.ZopeGuards, line 67, in guarded_getitem
>
>IndexError: list index out of range
Near line 26 of your PythonScript "getChapterInfo" you access
a sequence with a too large index.
Probably, your sequence depends on some search (or is otherwise
dynamically) and has fewer elements then expected.
--
Dieter
More information about the Zope
mailing list