<table height="105" width="46"><tbody><tr>
  <td><br></td>
 </tr>
 <tr>
  
  <td><br></td>
 </tr>
</tbody></table>some one please help me regarding why the index error is occuring...<br>i find the application works fine for a few values of textidx but only for a few distinct values this error occurs....<br><br>kindly help me <br>
<br>

<p>Traceback (innermost last):
</p><ul><li>  Module ZPublisher.Publish, line 119, in publish</li><li>  Module ZPublisher.mapply, line 88, in mapply</li><li>  Module ZPublisher.Publish, line 42, in call_object</li><li>  Module Shared.DC.Scripts.Bindings, line 313, in __call__</li>
<li>  Module Shared.DC.Scripts.Bindings, line 350, in _bindAndExec</li><li>  Module Products.PageTemplates.ZopePageTemplate, line 330, in _exec</li><li>  Module Products.PageTemplates.ZopePageTemplate, line 426, in pt_render</li>
<li>  Module Products.PageTemplates.PageTemplate, line 89, in pt_render</li><li>  Module zope.pagetemplate.pagetemplate, line 117, in pt_render</li><li>  Module zope.tal.talinterpreter, line 271, in __call__</li><li>  Module zope.tal.talinterpreter, line 346, in interpret</li>
<li>  Module zope.tal.talinterpreter, line 824, in do_loop_tal</li><li>  Module zope.tal.talinterpreter, line 346, in interpret</li><li>  Module zope.tal.talinterpreter, line 536, in do_optTag_tal</li><li>  Module zope.tal.talinterpreter, line 521, in do_optTag</li>
<li>  Module zope.tal.talinterpreter, line 516, in no_tag</li><li>  Module zope.tal.talinterpreter, line 346, in interpret</li><li>  Module zope.tal.talinterpreter, line 590, in do_setGlobal_tal</li><li>  Module zope.tales.tales, line 696, in evaluate<br>

<b>URL: /news/SearchReport</b><br>
<b>Line 79, Column 2</b><br>
<b>Expression: &lt;PythonExpr container.data.restrictedTraverse(storynb[0]).getChapterInfo(storynb[1], kfMax)&gt;</b><br>
<b>Names:</b><pre>{&#39;container&#39;: &lt;Folder at /news&gt;,<br> &#39;context&#39;: &lt;Folder at /news&gt;,<br> &#39;default&#39;: &lt;object object at 0xb7d62528&gt;,<br> &#39;here&#39;: &lt;Folder at /news&gt;,<br>
 &#39;loop&#39;: {u&#39;result&#39;: &lt;Products.PageTemplates.Expressions.PathIterator object at 0x1993cfcc&gt;},<br> &#39;nothing&#39;: None,<br> &#39;options&#39;: {&#39;args&#39;: ()},<br> &#39;repeat&#39;: &lt;Products.PageTemplates.Expressions.SafeMapping object at 0x186ab80c&gt;,<br>
 &#39;request&#39;: &lt;HTTPRequest, URL=<a href="http://kmi-vid01.open.ac.uk:8080/news/SearchReport">http://kmi-vid01.open.ac.uk:8080/news/SearchReport</a>&gt;,<br> &#39;root&#39;: &lt;Application at &gt;,<br> &#39;template&#39;: &lt;ZopePageTemplate at /news/SearchReport&gt;,<br>
 &#39;traverse_subpath&#39;: [],<br> &#39;user&#39;: &lt;User &#39;mmis&#39;&gt;}</pre></li><li>  Module Products.PageTemplates.ZRPythonExpr, line 49, in __call__<br>
__traceback_info__: container.data.restrictedTraverse(storynb[0]).getChapterInfo(storynb[1], kfMax)</li><li>  Module PythonExpr, line 1, in &lt;expression&gt;</li><li>  Module Shared.DC.Scripts.Bindings, line 313, in __call__</li>
<li>  Module Shared.DC.Scripts.Bindings, line 350, in _bindAndExec</li><li>  Module Products.PythonScripts.PythonScript, line 327, in _exec</li><li>  Module None, line 26, in getChapterInfo<br>
<b>&lt;PythonScript at /news/getChapterInfo used for /news/data/20071124&gt;</b><br>
<b>Line 26</b></li><li>  Module AccessControl.ZopeGuards, line 67, in guarded_getitem</li></ul>IndexError: list index out of range