perfstat doesn't support MultiView configurations

Issue #1 resolved
created an issue

I have a view callable with 2 renderer configured: - one for normal HTTP requests - one for Ajax requests



@view_config(route_name='categories', renderer='myapp:templates/') @view_config(route_name='categories', renderer='json', xhr=True) def categories(request): #... return {'categories':[]} }}}

Calling such a view raises the following error: {{{


File "/usr/local/lib/python3.2/dist-packages/pyramid_perfstat-0.2.0-py3.2.egg/pyramid_perfstat/", line 57, in perf_tween perf_manager = PerfDbManager(request) File "/usr/local/lib/python3.2/dist-packages/pyramid_perfstat-0.2.0-py3.2.egg/pyramid_perfstat/", line 135, in init view_callable = ".".join((view_callable.module, AttributeError: 'MultiView' object has no attribute 'name'


Unfortunately, this breaks the underlying pyramid application, therefore I set priority to 'major'.

Comments (3)

  1. Log in to comment