Comment 4 for bug 1391134

Revision history for this message
Paul Everitt (paul-agendaless) wrote :

I suspect these are related...I just got a value error:

ValueError: limit must be 1 or greater
Exception when processing https://karl.soros.org/people/foundations/c1/tifa-foundation-indonesia/jquery_grid?_=1415622202911&limit=12&start=-48&sortColumn=name&sortDirection=asc
Referer: https://karl.soros.org/people/foundations/c1/tifa-foundation-indonesia/

Traceback (most recent call last):
  File "/srv/osfkarl/production/59/eggs/pyramid-1.2.1-py2.6.egg/pyramid/tweens.py", line 17, in excview_tween
    response = handler(request)
  File "/srv/osfkarl/production/59/eggs/pyramid_tm-0.5-py2.6.egg/pyramid_tm/__init__.py", line 107, in tm_tween
    return response
  File "/srv/osfkarl/production/59/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/osfkarl/production/59/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/osfkarl/production/59/eggs/pyramid_tm-0.5-py2.6.egg/pyramid_tm/__init__.py", line 100, in tm_tween
    response = handler(request)
  File "/srv/osfkarl/production/59/eggs/pyramid-1.2.1-py2.6.egg/pyramid/router.py", line 153, in handle_request
    response = view_callable(context, request)
  File "/srv/osfkarl/production/59/eggs/pyramid-1.2.1-py2.6.egg/pyramid/config/views.py", line 186, in _secured_view
    return view(context, request)
  File "/srv/osfkarl/production/59/eggs/pyramid-1.2.1-py2.6.egg/pyramid/config/views.py", line 292, in rendered_view
    result = view(context, request)
  File "/srv/osfkarl/production/59/eggs/karl-4.3-py2.6.egg/karl/views/peopledirectory.py", line 395, in jquery_grid_view
    reverse=reverse,
  File "/srv/osfkarl/production/59/eggs/karl-4.3-py2.6.egg/karl/views/peopledirectory.py", line 537, in get_grid_data
    **kw
  File "/srv/osfkarl/production/59/eggs/karl-4.3-py2.6.egg/karl/views/batch.py", line 137, in get_catalog_batch_grid
    batch = get_catalog_batch(context, request, **kw)
  File "/srv/osfkarl/production/59/eggs/karl-4.3-py2.6.egg/karl/views/batch.py", line 57, in get_catalog_batch
    numdocs, docids, resolver = searcher(**kw)
  File "/srv/osfkarl/production/59/eggs/karl-4.3-py2.6.egg/karl/models/adapters.py", line 77, in __call__
    num, docids = self.catalog.search(**kw)
  File "/srv/osfkarl/production/59/eggs/perfmetrics-2.0-py2.6.egg/perfmetrics/__init__.py", line 222, in call_with_mod
    return f(*args, **kw)
  File "/srv/osfkarl/production/59/eggs/perfmetrics-2.0-py2.6.egg/perfmetrics/__init__.py", line 151, in call_with_metric
    return f(*args, **kw)
  File "/srv/osfkarl/production/59/eggs/karl-4.3-py2.6.egg/karl/models/catalog.py", line 101, in search
    num, docids = self._search(*arg, **kw)
  File "/srv/osfkarl/production/59/eggs/perfmetrics-2.0-py2.6.egg/perfmetrics/__init__.py", line 151, in call_with_metric
    return f(*args, **kw)
  File "/srv/osfkarl/production/59/eggs/karl-4.3-py2.6.egg/karl/models/catalog.py", line 122, in _search
    res = super(CachingCatalog, self).search(*arg, **kw)
  File "/srv/osfkarl/production/59/eggs/repoze.catalog-0.8.3-py2.6.egg/repoze/catalog/catalog.py", line 127, in search
    return self.sort_result(result, sort_index, limit, sort_type, reverse)
  File "/srv/osfkarl/production/59/eggs/repoze.catalog-0.8.3-py2.6.egg/repoze/catalog/catalog.py", line 137, in sort_result
    sort_type=sort_type)
  File "/srv/osfkarl/production/59/eggs/repoze.catalog-0.8.3-py2.6.egg/repoze/catalog/indexes/field.py", line 108, in sort
    raise ValueError('limit must be 1 or greater')
ValueError: limit must be 1 or greater