Modify

Opened 17 years ago

Closed 17 years ago

#1782 closed defect (fixed)

Unable to view tickets when plugin enabled

Reported by: steve@… Owned by: Noah Kantrowitz
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 17 years ago by Noah Kantrowitz

Keywords: needinfo added

Please try updating to the latest trunk.

comment:2 Changed 17 years ago by steve@…

Keywords: needinfo removed
Resolution: fixed
Status: newclosed

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.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Noah Kantrowitz.
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.