We had the TracHoursPlugin installed on 0.11.7 and reinstalled it with 0.12 on a new machine.
When trying to add a filter to the hours query form, an exception is thrown:
AttributeError: 'list' object has no attribute 'setdefault'
Stacktrace:
File "/usr/local/lib/python2.6/dist-packages/Trac-0.12-py2.6.egg/trac/web/main.py", line 513, in _dispatch_request
dispatcher.dispatch(req)
File "/usr/local/lib/python2.6/dist-packages/Trac-0.12-py2.6.egg/trac/web/main.py", line 235, in dispatch
resp = chosen_handler.process_request(req)
File "/usr/local/lib/python2.6/dist-packages/TracHoursPlugin-0.5.2-py2.6.egg/trachours/hours.py", line 234, in process_request
return self.process_timeline(req)
File "/usr/local/lib/python2.6/dist-packages/TracHoursPlugin-0.5.2-py2.6.egg/trachours/hours.py", line 509, in process_timeline
return self.display_html(req, query)
File "/usr/local/lib/python2.6/dist-packages/TracHoursPlugin-0.5.2-py2.6.egg/trachours/hours.py", line 615, in display_html
constraint = constraints.setdefault(field, {})