Ticket #6409 (closed defect: fixed)

Opened 2 months ago

Last modified 2 months ago

When using with custom query: AttributeError: 'str' object has no attribute 'get'

Reported by: igloo@earth.li Assigned to: obs
Priority: high Component: BlackMagicTicketTweaksPlugin
Severity: critical Keywords:
Cc: Trac Release: 0.11

Description

With trac 0.11.6, if I enable the Black Magic plugin, and also enable the custom query built-in plugin, then "View Tickets"/"Custom Query" gives me an error:

How to Reproduce

While doing a GET operation on /query, Trac issued an internal error.

System Information

Trac 0.11.6
Python 2.5.2 (r252:60911, Jan 4 2009, 22:17:10)
[GCC 4.3.2]
setuptools 0.6c8
SQLite 3.5.9
pysqlite 2.3.2
Genshi 0.5.1
mod_python 3.3.1
Pygments 0.10
CustomFieldAdmin? 0.2.2

Python Traceback

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/trac/web/main.py", line 450, in _dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.5/site-packages/trac/web/main.py", line 217, in dispatch
    self._post_process_request(req, *resp)
  File "/usr/lib/python2.5/site-packages/trac/web/main.py", line 309, in _post_process_request
    resp = f.post_process_request(req, *resp)
  File "build/bdist.linux-x86_64/egg/blackmagic/blackmagic.py", line 93, in post_process_request
    if  type.get("name") == "type":
AttributeError: 'str' object has no attribute 'get'

Attachments

Change History

01/10/10 21:04:28 changed by obs

  • priority changed from normal to high.
  • status changed from new to assigned.
  • severity changed from normal to critical.

Thanks, I'll check into this asap, probably in a few hours.

01/11/10 03:22:19 changed by obs

  • status changed from assigned to closed.
  • resolution set to fixed.

(In [7369]) Cleaned up code so it only runs functions on specific templates, fixes #6409 , ticket types a user doesn't have access to will now be removed from the custom reports screen.

01/13/10 13:28:53 changed by igloo@earth.li

Looks good; thanks for the fast response!


Add/Change #6409 (When using with custom query: AttributeError: 'str' object has no attribute 'get')




Change Properties
Action