Modify

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#13636 closed defect (fixed)

v2.2.2 on Trac 1.4: preference page empty

Reported by: alexander.duytschaever@… Owned by: Ryan J Ollos
Priority: normal Component: DynamicFieldsPlugin
Severity: minor Keywords:
Cc: Trac Release: 1.4

Description

when attempting to open the Dynamic Fields tab in the user preferences, I get this log:

2019-10-30 15:46:31,398 Trac[chrome] ERROR: Jinja2 UndefinedError error while rendering XML/HTML template 
Traceback (most recent call last):
  File "/var/projects/trac/venv/local/lib/python2.7/site-packages/trac/web/chrome.py", line 1704, in _iterable_jinja_content
    for chunk in stream:
  File "/var/projects/trac/venv/local/lib/python2.7/site-packages/jinja2/environment.py", line 1271, in __next__
    return self._next()
  File "/var/projects/trac/venv/local/lib/python2.7/site-packages/jinja2/environment.py", line 1248, in _buffered_generator
    c = next(self._gen)
  File "/var/projects/trac/venv/local/lib/python2.7/site-packages/jinja2/environment.py", line 1045, in generate
    yield self.environment.handle_exception(exc_info, True)
  File "/var/projects/trac/venv/local/lib/python2.7/site-packages/jinja2/environment.py", line 780, in handle_exception
    reraise(exc_type, exc_value, tb)
  File "/var/projects/trac/venv/local/lib/python2.7/site-packages/dynfields/templates/prefs_panel.html", line 32, in top-level template code
    <p class="hint">${data[title]['desc']}</p>
  File "/var/projects/trac/venv/local/lib/python2.7/site-packages/jinja2/environment.py", line 411, in getitem
    return obj[argument]
UndefinedError: dict object has no element Undefined

At first sight, the plugin seems to work.

Attachments (0)

Change History (7)

comment:1 Changed 5 years ago by anonymous

Edit added: the preference page does not open, but stays blank.

comment:2 Changed 5 years ago by Ryan J Ollos

Status: newaccepted

comment:3 Changed 5 years ago by Ryan J Ollos

Resolution: fixed
Status: acceptedclosed

In 17548:

TracDynamicFields 2.3.0dev: Make compatible with Trac 1.4

Fixes #13636.

comment:4 Changed 5 years ago by Ryan J Ollos

For now, you'll need to install from the svn repository:

$ pip install svn+https://trac-hacks.org/svn/dynamicfieldsplugin/trunk/

I'll release version 2.3.0 soon.

comment:5 Changed 5 years ago by anonymous

that trunk (17548) seems to work, thx.

comment:6 Changed 5 years ago by Ryan J Ollos

Thanks for confirming. I've published 2.3.0 to PyPI.

comment:7 Changed 5 years ago by Ryan J Ollos

In 17549:

TracDynamicFields 2.4.0dev: Bump version

Refs #13636.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Ryan J Ollos.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.