Wednesday, September 8, 2021

202109-08 12:40:15 ERROR [log 29322 140314402891648] : Internal Server Error: /api/comments/RecentComments
Traceback (most recent call last):
  File "/usr/local/lino/lino_local/jane/env/lib/python3.7/site-packages/django/core/handlers/exception.py", line 47, in inner
    response = get_response(request)
  File "/usr/local/lino/lino_local/jane/env/lib/python3.7/site-packages/django/core/handlers/base.py", line 181, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/local/lino/lino_local/jane/env/lib/python3.7/site-packages/django/views/generic/base.py", line 70, in view
    return self.dispatch(request, *args, **kwargs)
  File "/usr/local/lino/lino_local/jane/env/lib/python3.7/site-packages/django/views/generic/base.py", line 98, in dispatch
    return handler(request, *args, **kwargs)
  File "/usr/local/lino/lino_local/jane/env/lib/python3.7/site-packages/lino_react/react/views.py", line 169, in get
    for row in ar.sliced_data_iterator]
  File "/usr/local/lino/lino_local/jane/env/lib/python3.7/site-packages/lino_react/react/views.py", line 169, in <listcomp>
    for row in ar.sliced_data_iterator]
  File "/usr/local/lino/lino_local/jane/env/lib/python3.7/site-packages/lino_react/react/views.py", line 166, in serialize
    row, fields=fields, card_title=ar.get_card_title(row))
  File "/usr/local/lino/lino_local/jane/env/lib/python3.7/site-packages/lino/core/requests.py", line 1118, in get_card_title
    return self.actor.get_card_title(self, elem)
  File "/usr/local/lino/lino_local/jane/env/lib/python3.7/site-packages/lino/modlib/comments/ui.py", line 209, in get_card_title
    return ar.actor.get_comment_header(obj, ar)
  File "/usr/local/lino/lino_local/jane/env/lib/python3.7/site-packages/lino/modlib/comments/ui.py", line 137, in get_comment_header
    if sar.has_permission():
AttributeError: 'TableRequest' object has no attribute 'has_permission'