1. tuck
  2. pyramid_perfstat
  3. Issues
Issue #1 resolved

perfstat doesn't support MultiView configurations

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/categories.pt') @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/init.py", 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/perf_serializer.py", line 135, in init view_callable = ".".join((view_callable.module,view_callable.name)) 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