Ticket #4545 (closed defect: fixed)
Error while displaying an error (iterable argument required)
| Reported by: | eblot | Owned by: | cboos |
|---|---|---|---|
| Priority: | normal | Milestone: | 0.11 |
| Component: | general | Version: | devel |
| Severity: | normal | Keywords: | |
| Cc: |
Description
Using the trunk [4575].
Context: Trac is attempting to load the th:RevtreePlugin. For some reason, Trac fails to load it, and I suppose is trying to render the error when the following traceback occurs:
Traceback (most recent call last):
File "/Users/eblot/Sources/Svn/edgewall.org/trac/trunk/trac/web/api.py", line 329, in send_error
'text/html')
File "/Users/eblot/Sources/Svn/edgewall.org/trac/trunk/trac/web/chrome.py", line 552, in render_template
return stream.render(method, doctype=doctype)
File "/Users/eblot/Sources/Svn/edgewall.org/genshi/tags/0.3.6/genshi/core.py", line 141, in render
output = u''.join(list(generator))
File "/Users/eblot/Sources/Svn/edgewall.org/genshi/tags/0.3.6/genshi/output.py", line 203, in __call__
for kind, data, pos in stream:
File "/Users/eblot/Sources/Svn/edgewall.org/genshi/tags/0.3.6/genshi/output.py", line 491, in __call__
for kind, data, pos in chain(stream, [(None, None, None)]):
File "/Users/eblot/Sources/Svn/edgewall.org/genshi/tags/0.3.6/genshi/output.py", line 439, in __call__
for kind, data, pos in stream:
File "/Users/eblot/Sources/Svn/edgewall.org/genshi/tags/0.3.6/genshi/core.py", line 202, in _ensure
for event in stream:
File "/Users/eblot/Sources/Svn/edgewall.org/genshi/tags/0.3.6/genshi/core.py", line 202, in _ensure
for event in stream:
File "/Users/eblot/Sources/Svn/edgewall.org/trac/trunk/trac/web/chrome.py", line 580, in _strip_accesskeys
for kind, data, pos in stream:
File "/Users/eblot/Sources/Svn/edgewall.org/genshi/tags/0.3.6/genshi/core.py", line 202, in _ensure
for event in stream:
File "/Users/eblot/Sources/Svn/edgewall.org/trac/trunk/trac/web/chrome.py", line 569, in _generate
for kind, data, pos in stream:
File "/Users/eblot/Sources/Svn/edgewall.org/genshi/tags/0.3.6/genshi/filters.py", line 147, in __call__
for kind, data, pos in stream:
File "/Users/eblot/Sources/Svn/edgewall.org/genshi/tags/0.3.6/genshi/template.py", line 1149, in _match
content = list(content)
File "/Users/eblot/Sources/Svn/edgewall.org/genshi/tags/0.3.6/genshi/filters.py", line 147, in __call__
for kind, data, pos in stream:
File "/Users/eblot/Sources/Svn/edgewall.org/genshi/tags/0.3.6/genshi/template.py", line 1123, in _match
for kind, data, pos in stream:
File "/Users/eblot/Sources/Svn/edgewall.org/genshi/tags/0.3.6/genshi/template.py", line 1112, in _strip
kind, data, pos = stream.next()
File "/Users/eblot/Sources/Svn/edgewall.org/genshi/tags/0.3.6/genshi/template.py", line 946, in _eval
for event in substream:
File "/Users/eblot/Sources/Svn/edgewall.org/genshi/tags/0.3.6/genshi/template.py", line 925, in _eval
result = data.evaluate(ctxt)
File "/Users/eblot/Sources/Svn/edgewall.org/genshi/tags/0.3.6/genshi/eval.py", line 102, in evaluate
{'data': data})
File "/Users/eblot/Sources/Svn/edgewall.org/trac/trunk/templates/error.html", line 51, in <Expression u""\\n" in v and ["`%s`[[br]]" % line for line in v.split("\\n")] or "`%s`" % v">
</py:for>
TypeError: iterable argument required
I'm not sure whether it is a 'genshi' or Trac issue. Sorry if I'm wrong.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.


