Ticket #370 (closed defect: fixed)
Regression: multiple py:match elements cause Exception 'list index out of range'
| Reported by: | Felix Schwarz <felix.schwarz@…> | Owned by: | hodgestar |
|---|---|---|---|
| Priority: | major | Milestone: | 0.6.1 |
| Component: | Template processing | Version: | devel |
| Keywords: | Cc: | osimons, mmitar@… |
Description
We have a Genshi template that uses several stacked py:match expressions which worked with 0.5.1. Using the latest 0.6 trunk I get an exception when rendering this template with Genshi:
... File "trac/web/chrome.py", line 832, in _strip_accesskeys for kind, data, pos in stream: File "genshi/core.py", line 288, in _ensure for event in stream: File "trac/web/chrome.py", line 821, in _generate for kind, data, pos in stream: File "genshi/template/base.py", line 592, in _include for event in stream: File "genshi/template/markup.py", line 344, in _match if test(event, namespaces, ctxt) is True: File "genshi/path.py", line 129, in _test pos_queue = deque([(pos, cou, []) for pos, cou in stack[-1]])
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

