Changes between Initial Version and Version 1 of Ticket #13615


Ignore:
Timestamp:
Sep 24, 2019, 5:26:05 AM (5 years ago)
Author:
matobaa
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #13615 – Description

    initial v1  
     1trac.log shows it uses a genshi template as a jinja2 template.
     2refer a patch attached.
     3{{{
     42019-09-24 14:22:17,210 Trac[env] INFO: -------------------------------- environment startup [Trac 1.4] --------------------------------
     52019-09-24 14:22:18,596 Trac[chrome] ERROR: Jinja2 UndefinedError error while rendering XML/HTML template
     6Traceback (most recent call last):
     7  File "h:\trac14\.venv\lib\site-packages\trac\web\chrome.py", line 1704, in _iterable_jinja_content
     8    for chunk in stream:
     9  File "h:\trac14\.venv\lib\site-packages\jinja2\environment.py", line 1271, in __next__
     10    return self._next()
     11  File "h:\trac14\.venv\lib\site-packages\jinja2\environment.py", line 1248, in _buffered_generator
     12    c = next(self._gen)
     13  File "h:\trac14\.venv\lib\site-packages\jinja2\environment.py", line 1045, in generate
     14    yield self.environment.handle_exception(exc_info, True)
     15  File "h:\trac14\.venv\lib\site-packages\jinja2\environment.py", line 780, in handle_exception
     16    reraise(exc_type, exc_value, tb)
     17  File "h:\trac14\iniadminplugin\0.11\iniadmin\templates\iniadmin.html", line 32, in top-level template code
     18    <li py:for="idx, option in enumerate(iniadmin.options)" class="align${idx % 3}">
     19UndefinedError: 'idx' is undefined
     20}}}