Opened 5 years ago

Last modified 5 years ago

#13615 closed defect

IniAdminPlugins shows a blank page — at Version 1

Reported by: matobaa Owned by: Jun Omae
Priority: normal Component: IniAdminPlugin
Severity: normal Keywords:
Cc: Trac Release: 1.4

Description (last modified by matobaa)

trac.log shows it uses a genshi template as a jinja2 template. refer a patch attached.

2019-09-24 14:22:17,210 Trac[env] INFO: -------------------------------- environment startup [Trac 1.4] --------------------------------
2019-09-24 14:22:18,596 Trac[chrome] ERROR: Jinja2 UndefinedError error while rendering XML/HTML template 
Traceback (most recent call last):
  File "h:\trac14\.venv\lib\site-packages\trac\web\chrome.py", line 1704, in _iterable_jinja_content
    for chunk in stream:
  File "h:\trac14\.venv\lib\site-packages\jinja2\environment.py", line 1271, in __next__
    return self._next()
  File "h:\trac14\.venv\lib\site-packages\jinja2\environment.py", line 1248, in _buffered_generator
    c = next(self._gen)
  File "h:\trac14\.venv\lib\site-packages\jinja2\environment.py", line 1045, in generate
    yield self.environment.handle_exception(exc_info, True)
  File "h:\trac14\.venv\lib\site-packages\jinja2\environment.py", line 780, in handle_exception
    reraise(exc_type, exc_value, tb)
  File "h:\trac14\iniadminplugin\0.11\iniadmin\templates\iniadmin.html", line 32, in top-level template code
    <li py:for="idx, option in enumerate(iniadmin.options)" class="align${idx % 3}">
UndefinedError: 'idx' is undefined

Change History (2)

Changed 5 years ago by matobaa

Attachment: iniadmin_14.patch added

comment:1 Changed 5 years ago by matobaa

Description: modified (diff)
Note: See TracTickets for help on using tickets.