Modify

Opened 4 years ago

Closed 4 years ago

#13945 closed defect (fixed)

UndefinedError: 'parenttype' is undefined in ChildTicketsPlugin admin page

Reported by: marc_0 Owned by: Ryan J Ollos
Priority: normal Component: ChildTicketsPlugin
Severity: normal Keywords:
Cc: Trac Release: 1.4

Description (last modified by Ryan J Ollos)

Going into admin page of latest version childticketsplugin (2.5.6 Dev0) ends up with:

UndefinedError: 'parenttype' is undefined

in admin page

Line35 in admin_childtickets.html is mentioned.

Is working fine in Trac 1.2.

Attachments (0)

Change History (3)

comment:1 Changed 4 years ago by Ryan J Ollos

Description: modified (diff)
Owner: changed from Mark Ryan to Ryan J Ollos
Status: newaccepted

comment:2 Changed 4 years ago by Ryan J Ollos

Traceback (most recent call last):
  File "/Users/rjollos/Documents/Workspace/trac-dev/teo-rjollos.git/trac/web/chrome.py", line 1706, in _iterable_jinja_content
    for chunk in stream:
  File "/Users/rjollos/.pyenv/versions/trac-2.7/lib/python2.7/site-packages/jinja2/environment.py", line 1357, in __next__
    return self._next()
  File "/Users/rjollos/.pyenv/versions/trac-2.7/lib/python2.7/site-packages/jinja2/environment.py", line 1334, in _buffered_generator
    c = next(self._gen)
  File "/Users/rjollos/.pyenv/versions/trac-2.7/lib/python2.7/site-packages/jinja2/environment.py", line 1125, in generate
    yield self.environment.handle_exception()
  File "/Users/rjollos/.pyenv/versions/trac-2.7/lib/python2.7/site-packages/jinja2/environment.py", line 832, in handle_exception
    reraise(*rewrite_traceback_stack(source=source))
  File "/Users/rjollos/Documents/Workspace/trac-dev/trac-hacks/childticketsplugin/trunk/childtickets/templates/admin_childtickets.html", line 35, in top-level template code
    checked="${parenttype.allow_child_tickets or None}"/>
  File "/Users/rjollos/.pyenv/versions/trac-2.7/lib/python2.7/site-packages/jinja2/environment.py", line 471, in getattr
    return getattr(obj, attribute)
UndefinedError: 'parenttype' is undefined

comment:3 Changed 4 years ago by Ryan J Ollos

Resolution: fixed
Status: acceptedclosed

In 17994:

Tracchildtickets 2.5.6dev: Fix Trac 1.4 compatibility

Genshi is required since r17866, but the IAdminPanelProvider
was not modified to use Genshi in Trac 1.4+.

Fixed table pushed to bottom of screen on Parent Types
admin page.

Fixes #13945.

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.