Modify

Opened 7 years ago

Closed 7 years ago

#1782 closed defect (fixed)

Unable to view tickets when plugin enabled

Reported by: steve@… Owned by: coderanger
Priority: normal Component: MasterTicketsPlugin
Severity: blocker Keywords:
Cc: Trac Release: 0.11

Description

I get the following in my log when trying to view any ticket after enabling the MasterTickets plugin and restarting Trac.

17:26:16 Trac[__init__] ERROR: 'NoneType' object is unsubscriptable
Traceback (most recent call last):
  File "/opt/trac-trunk/lib/python2.5/site-packages/Trac-0.11dev_r5823-py2.5.egg/trac/web/main.py", line 252, in dispatch
    self._post_process_request(req)
  File "/opt/trac-trunk/lib/python2.5/site-packages/Trac-0.11dev_r5823-py2.5.egg/trac/web/main.py", line 317, in _post_process_request
    resp = f.post_process_request(req, *(None,)*arity)
  File "build/bdist.linux-i686/egg/mastertickets/web_ui.py", line 25, in post_process_request
    tkt = data['ticket']
TypeError: 'NoneType' object is unsubscriptable
17:26:16 Trac[__init__] ERROR: 'field_types'
Traceback (most recent call last):
  File "/opt/trac-trunk/lib/python2.5/site-packages/Trac-0.11dev_r5823-py2.5.egg/trac/web/main.py", line 434, in dispatch_request
    dispatcher.dispatch(req)
  File "/opt/trac-trunk/lib/python2.5/site-packages/Trac-0.11dev_r5823-py2.5.egg/trac/web/main.py", line 229, in dispatch
    self._post_process_request(req, *resp)
  File "/opt/trac-trunk/lib/python2.5/site-packages/Trac-0.11dev_r5823-py2.5.egg/trac/web/main.py", line 315, in _post_process_request
    resp = f.post_process_request(req, *resp)
  File "build/bdist.linux-i686/egg/mastertickets/web_ui.py", line 27, in post_process_request
    data['field_types']['blocking'] = 'text'
KeyError: 'field_types'

Attachments (0)

Change History (2)

comment:1 Changed 7 years ago by coderanger

  • Keywords needinfo added

Please try updating to the latest trunk.

comment:2 Changed 7 years ago by steve@…

  • Keywords needinfo removed
  • Resolution set to fixed
  • Status changed from new to closed

Works now, fantastic! The only issue I had was pre-existing "blocking" values not being propagated into the "blockedby" of the parent ticket, meaning I had to modify all tickets re-link them.

Add Comment

Modify Ticket

Action
as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from coderanger. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.