Pagination/sorting after nix-size-calc gives timeit error on JSON

Bug #1340401 reported by Paul Everitt
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KARL3
Invalid
Medium
Chris Rossi

Bug Description

Sorting or pagination involve a call to jquery_grid_list which gives the following:

AttributeError: 'Request' object has no attribute 'timeit'
Exception when processing https://karlstaging.gocept.com/communities/a-time-for-testing-again/files/jquery_grid_list?_=1405024605820&limit=10&start=10&sortColumn=modified_date&sortDirection=desc
Referer: https://karlstaging.gocept.com/communities/a-time-for-testing-again/files

Traceback (most recent call last):
  File "/srv/karlstaging/staging/41/eggs/pyramid-1.2.1-py2.6.egg/pyramid/tweens.py", line 17, in excview_tween
    response = handler(request)
  File "/srv/karlstaging/staging/41/eggs/pyramid_tm-0.5-py2.6.egg/pyramid_tm/__init__.py", line 107, in tm_tween
    return response
  File "/srv/karlstaging/staging/41/eggs/pyramid_tm-0.5-py2.6.egg/pyramid_tm/__init__.py", line 75, in __exit__
    return self._retry_or_raise(t, v, tb)
  File "/srv/karlstaging/staging/41/eggs/pyramid_tm-0.5-py2.6.egg/pyramid_tm/__init__.py", line 60, in _retry_or_raise
    reraise(t, v, tb) # otherwise reraise the exception
  File "/srv/karlstaging/staging/41/eggs/pyramid_tm-0.5-py2.6.egg/pyramid_tm/__init__.py", line 100, in tm_tween
    response = handler(request)
  File "/srv/karlstaging/staging/41/eggs/pyramid-1.2.1-py2.6.egg/pyramid/router.py", line 153, in handle_request
    response = view_callable(context, request)
  File "/srv/karlstaging/staging/41/eggs/pyramid-1.2.1-py2.6.egg/pyramid/config/views.py", line 186, in _secured_view
    return view(context, request)
  File "/srv/karlstaging/staging/41/eggs/pyramid-1.2.1-py2.6.egg/pyramid/config/views.py", line 292, in rendered_view
    result = view(context, request)
  File "/srv/karlstaging/staging/41/eggs/karl-3.126-py2.6.egg/karl/content/views/files.py", line 944, in jquery_grid_folder_view
    reverse = reverse,
  File "/srv/karlstaging/staging/41/eggs/karl-3.126-py2.6.egg/karl/content/views/files.py", line 971, in get_filegrid_client_data
    with request.timeit("get_filegrid_client_data"):
AttributeError: 'Request' object has no attribute 'timeit'

Revision history for this message
Chris Rossi (chris-archimedeanco) wrote :

The timeit code was inserted adhoc on staging and is not in any version in source control. I'm currently rebuilding staging from a current branch, so there will shortly be no code running with the timeit code.

Changed in karl3:
status: New → Invalid
Revision history for this message
Paul Everitt (paul-agendaless) wrote :

I can't reproduce this locally after blowing away my Chrome cache. We'll check on karlstaging after Chris rebuilds it.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.