-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Address heisenbug reported where performance panel template variabl…
…es cause unexpected results. Can't repeat, but reporter indicates the fix works for him, so hail marying.
- Loading branch information
Showing
2 changed files
with
9 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5719c97
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Original traceback:
URL: http://127.0.0.1:5000/?flash=1
File '/home/marcink/.virtualenvs/monitoring-dashboard/lib/python2.6/site-packages/WebError-0.10.3-py2.6.egg/weberror/evalexception.py', line 431 in respond
app_iter = self.application(environ, detect_start_response)
File '/home/marcink/.virtualenvs/monitoring-dashboard/lib/python2.6/site-packages/pyramid-1.2.1-py2.6.egg/pyramid/router.py', line 176 in call
response = self.handle_request(request)
File '/home/marcink/.virtualenvs/monitoring-dashboard/lib/python2.6/site-packages/pyramid_debugtoolbar-0.9.5-py2.6.egg/pyramid_debugtoolbar/toolbar.py', line 157 in toolbar_tween
toolbar.process_response(response)
File '/home/marcink/.virtualenvs/monitoring-dashboard/lib/python2.6/site-packages/pyramid_debugtoolbar-0.9.5-py2.6.egg/pyramid_debugtoolbar/toolbar.py', line 55 in process_response
vars, request=request)
File '/home/marcink/.virtualenvs/monitoring-dashboard/lib/python2.6/site-packages/pyramid-1.2.1-py2.6.egg/pyramid/renderers.py', line 69 in render
return helper.render(value, None, request=request)
File '/home/marcink/.virtualenvs/monitoring-dashboard/lib/python2.6/site-packages/pyramid-1.2.1-py2.6.egg/pyramid/renderers.py', line 418 in render
result = renderer(value, system_values)
File '/home/marcink/.virtualenvs/monitoring-dashboard/lib/python2.6/site-packages/pyramid-1.2.1-py2.6.egg/pyramid/mako_templating.py', line 155 in call
raise MakoRenderingException(errtext)
MakoRenderingException:
Traceback (most recent call last):
File "/home/marcink/.virtualenvs/monitoring-dashboard/lib/python2.6/site-packages/pyramid-1.2.1-py2.6.egg/pyramid/mako_templating.py", line 147, in call
result = template.render_unicode(*_system)
File "/home/marcink/.virtualenvs/monitoring-dashboard/lib/python2.6/site-packages/Mako-0.5.0-py2.6.egg/mako/template.py", line 311, in render_unicode
as_unicode=True)
File "/home/marcink/.virtualenvs/monitoring-dashboard/lib/python2.6/site-packages/Mako-0.5.0-py2.6.egg/mako/runtime.py", line 660, in _render
*_kwargs_for_callable(callable, data))
File "/home/marcink/.virtualenvs/monitoring-dashboard/lib/python2.6/site-packages/Mako-0.5.0-py2.6.egg/mako/runtime.py", line 692, in _render_context
_exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
File "/home/marcink/.virtualenvs/monitoring-dashboard/lib/python2.6/site-packages/Mako-0.5.0-py2.6.egg/mako/runtime.py", line 718, in exec_template
callable(context, _args, *_kwargs)
File "/home/marcink/.virtualenvs/monitoring-dashboard/lib/python2.6/site-packages/pyramid_debugtoolbar-0.9.5-py2.6.egg/pyramid_debugtoolbar/templates/toolbar.mako", line 61, in render_body
${panel.content()|n}
File "/home/marcink/.virtualenvs/monitoring-dashboard/lib/python2.6/site-packages/pyramid_debugtoolbar-0.9.5-py2.6.egg/pyramid_debugtoolbar/panels/performance.py", line 204, in content
vars, request=self.request)
File "/home/marcink/.virtualenvs/monitoring-dashboard/lib/python2.6/site-packages/pyramid_debugtoolbar-0.9.5-py2.6.egg/pyramid_debugtoolbar/panels/init.py", line 24, in render
return render(template_name, vars, request=request)
File "/home/marcink/.virtualenvs/monitoring-dashboard/lib/python2.6/site-packages/pyramid-1.2.1-py2.6.egg/pyramid/renderers.py", line 69, in render
return helper.render(value, None, request=request)
File "/home/marcink/.virtualenvs/monitoring-dashboard/lib/python2.6/site-packages/pyramid-1.2.1-py2.6.egg/pyramid/renderers.py", line 418, in render
result = renderer(value, system_values)
File "/home/marcink/.virtualenvs/monitoring-dashboard/lib/python2.6/site-packages/pyramid-1.2.1-py2.6.egg/pyramid/mako_templating.py", line 155, in call
raise MakoRenderingException(errtext)
MakoRenderingException:
Traceback (most recent call last):
File "/home/marcink/.virtualenvs/monitoring-dashboard/lib/python2.6/site-packages/pyramid-1.2.1-py2.6.egg/pyramid/mako_templating.py", line 147, in call
result = template.render_unicode(*_system)
File "/home/marcink/.virtualenvs/monitoring-dashboard/lib/python2.6/site-packages/Mako-0.5.0-py2.6.egg/mako/template.py", line 311, in render_unicode
as_unicode=True)
File "/home/marcink/.virtualenvs/monitoring-dashboard/lib/python2.6/site-packages/Mako-0.5.0-py2.6.egg/mako/runtime.py", line 660, in _render
*_kwargs_for_callable(callable, data))
File "/home/marcink/.virtualenvs/monitoring-dashboard/lib/python2.6/site-packages/Mako-0.5.0-py2.6.egg/mako/runtime.py", line 692, in _render_context
_exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
File "/home/marcink/.virtualenvs/monitoring-dashboard/lib/python2.6/site-packages/Mako-0.5.0-py2.6.egg/mako/runtime.py", line 718, in exec_template
callable(context, _args, *_kwargs)
File "/home/marcink/.virtualenvs/monitoring-dashboard/lib/python2.6/site-packages/pyramid_debugtoolbar-0.9.5-py2.6.egg/pyramid_debugtoolbar/panels/templates/performance.mako", line 1, in render_body
% if timing_rows:
NameError: 'function_calls' is not defined