#527: AttributeError rendering TicketQuery widget
---------------------+---------------
Reporter: olemis | Owner:
Type: defect | Status: new
Priority: major | Version:
Resolution: |
---------------------+---------------
Got following error recorded in the log while expanding `TicketQuery`
widget in global environment
{{{
2013-05-14 17:20:01,973 Trac[web_ui] ERROR: - 68c06066-1735-4042-877b-
a96f7c932422 - Error rendering widget TicketQuery with options {'args':
{'query': '!closed'}}
}}}
Details
{{{#!py
Traceback (most recent call last):
File "/path/to/bloodhound/bloodhound_dashboard/bhdashboard/web_ui.py",
line 272, in _render_widget
return wp.render_widget(name, ctx, options)
File "/path/to/bloodhound/bloodhound_dashboard/bhdashboard/util.py",
line 132, in widget_name_checker
return f(self, name, *args, **kwargs)
File
"/path/to/bloodhound/bloodhound_dashboard/bhdashboard/widgets/query.py",
line 102, in render_widget
data = qrymdl.process_request(fakereq)[1]
File
"/path/to/bloodhound/bloodhound_multiproduct/multiproduct/ticket/query.py",
line 229, in process_request
return self.display_html(req, query)
File
"/path/to/bloodhound/bloodhound_multiproduct/multiproduct/ticket/query.py",
line 241, in display_html
tickets = query.execute(req)
File
"/path/to/bloodhound/bloodhound_multiproduct/multiproduct/ticket/query.py",
line 127, in execute
row[product_idx], val)
File
"/path/to/bloodhound/bloodhound_multiproduct/multiproduct/ticket/query.py",
line 71, in _get_ticket_href
product_env = ProductEnvironment(self.env, prefix)
File
"/path/to/bloodhound/bloodhound_multiproduct/multiproduct/cache.py", line
67, in wrapper
result = user_function(*args, **kwds)
File "/path/to/bloodhound/bloodhound_multiproduct/multiproduct/env.py",
line 379, in __call__
return ComponentMeta.__call__(self, *args, **kwargs)
File "/path/to/bloodhound/trac/trac/core.py", line 140, in __call__
self.__init__(*args, **kwargs)
File "/path/to/bloodhound/trac/trac/core.py", line 107, in new_init
original_init(self, *args, **kwargs)
File "/path/to/bloodhound/bloodhound_multiproduct/multiproduct/env.py",
line 534, in __init__
self.setup_config()
File "/path/to/bloodhound/bloodhound_multiproduct/multiproduct/env.py",
line 787, in setup_config
self.config = Configuration(self.parent, self.product.prefix, parents)
AttributeError: 'NoneType' object has no attribute 'prefix'
}}}
--
Ticket URL: <https://issues.apache.org/bloodhound/ticket/527>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound issue tracker