#239: update of trunk/trac leaves errors in dashboard widgets -----------------------+-------------------- Reporter: gjm | Owner: nobody Type: defect | Status: new Priority: major | Milestone: Component: dashboard | Version: Keywords: | -----------------------+-------------------- errors of form: {{{ 2012-10-16 20:54:03,386 Trac[web_ui] ERROR: - a153132c-108d-414a-91ae- ecf4acc81a21 - Error rendering widget TicketQuery with options {'args': {'max': 10, 'title': 'Active Tickets', 'query': 'status=!closed&group=time&col=id&col=summary&col=owner&col=status&col=priority&order=pri ority&groupdesc=1&desc=1'}} Traceback (most recent call last): File "/home/bloodhound/projects/bloodhound_merge/trunk/bloodhound_dashboard/bhdashboard/web_ui.py" , line 244, in _render_widget return wp.render_widget(name, ctx, options) File "/home/bloodhound/projects/bloodhound_merge/trunk/bloodhound_dashboard/bhdashboard/util.py", line 130, in widget_name_checker return f(self, name, *args, **kwargs) File "/home/bloodhound/projects/bloodhound_merge/trunk/bloodhound_dashboard/bhdashboard/widgets/qu ery.py", line 97, in render_widget data = qrymdl.process_request(fakereq)[1] File "/home/bloodhound/projects/bloodhound_merge/trunk/trac/trac/ticket/query.py", line 965, in process_request return self.display_html(req, query) File "/home/bloodhound/projects/bloodhound_merge/trunk/trac/trac/ticket/query.py", line 1132, in display_html Chrome(self.env).add_jquery_ui(req) File "/home/bloodhound/projects/bloodhound_merge/trunk/trac/trac/web/chrome.py", line 1103, in add_jquery_ui is_iso8601 = req.lc_time == 'iso8601' File "/home/bloodhound/projects/bloodhound_merge/trunk/trac/trac/web/api.py", line 307, in __getattr__ raise AttributeError(name) }}}
leaving various widgets displaying errors. The following looks like it will fix the error: {{{ #!diff Index: bhdashboard/util.py =================================================================== --- bhdashboard/util.py (revision 1398888) +++ bhdashboard/util.py (working copy) @@ -62,6 +62,7 @@ 'authname': rd.authenticate, 'chrome': chrome.prepare_request, 'hdf': getattr(rd, '_get_hdf', None), + 'lc_time': rd._get_lc_time, 'locale' : getattr(rd, '_get_locale', None), 'perm': rd._get_perm, 'session': rd._get_session, }}} -- Ticket URL: <https://issues.apache.org/bloodhound/ticket/239> Apache Bloodhound <https://issues.apache.org/bloodhound/> The Apache Bloodhound (incubating) issue tracker