Re: [Zope] index error, list index out of range

2008-06-04 Thread Dieter Maurer
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:container.data.restrictedTraverse(storynb[0]).getChapterInfo(storynb[1],
>   kfMax)>*
> ...
>   - Module Products.PythonScripts.PythonScript, line 327, in _exec
>   - Module None, line 26, in getChapterInfo
>   **
>   *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
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] index error, list index out of range

2008-06-04 Thread Andreas Jung



--On 4. Juni 2008 12:41:01 +0100 suhail shaik <[EMAIL PROTECTED]> wrote:


 some one please help me regarding why the index error is occuring...
i find the application works fine for a few values of textidx but only
for a few distinct values this error occurs



This error caused in your code. So you have to provide the code in order to 
get help.


Andreas

pgpOhdpwJTjTJ.pgp
Description: PGP signature
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )