Opened 16 years ago
Last modified 15 years ago
#3365 closed defect
IndexError: list index out of range peerReviewView.html — at Initial Version
Reported by: | Owned by: | Sebastian Marek | |
---|---|---|---|
Priority: | normal | Component: | PeerReviewPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.11 |
Description
Error: IndexError: list index out of range
When user searches for code reviews or views any that aren't theirs the Index error appears when they choose one of the reviews that appears. There error happens on http://192.168.2.33/trac/peerReviewView?Review=2 for example.
Quick Fix: edit the html in /tmp/.pythoneggs/ and in the templates and on the peerReviewView.html Edit the following to look like example beneath it:
<tr py:if="filesLength > 0" py:for="item in rvs" class="${cls.next()}">
</tr>
<tr py:if="filesLength > 0" py:for="item in rvs" class="${cls.next()}">
<td>${item[0]}</td>
</tr>
The problem is if you restart trac this change is not there.
Traceback:
File "/tmp/.python-eggs/TracCodeReview-2.1_toddlerdev_r0-py2.4.egg-tmp/codereview/templates/peerReviewView.html", line 93, in <Expression u'item[1]'>
<td>${item[1]}</td>
System Info:
System Information:
User Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.15) Gecko/20080702 Fedora/2.0.0.15-1.fc8 Firefox/2.0.0.15 Trac: 0.11 Python: 2.4.3 (#1, May 24 2008, 13:47:28) [GCC 4.1.2 20070626 (Red Hat 4.1.2-14)] setuptools: 0.6c8 SQLite: 3.3.6 pysqlite: 1.1.7 Genshi: 0.5 mod_python: 3.2.8 Pygments: 0.10 jQuery: 1.2.3