1860: AttributeError: 'ReviewRequestDataGrid' object has no attribute 'id_list' accessing reviewboard

Rodrigu********@gmai***** (Google Code) (Is this you? Claim this profile.)
Nov. 7, 2010
1526
What version are you running?
1.0.9

What's the URL of the page containing the problem?
/dashboard

What steps will reproduce the problem?
1. Log in
2. Access the home page
3.

What is the expected output? What do you see instead?
I want to see the dashboard, instead I got a 500 (nice error message by the way)

What operating system are you using? What browser?
Linux, google chrome

Stack trace the admin received:

Traceback (most recent call last):

  File "/subversion/reviewboard/lib/python2.5/site-packages/django/core/handlers/base.py", line 100, in get_response
    response = callback(request, *callback_args, **callback_kwargs)

  File "/subversion/reviewboard/lib/python2.5/site-packages/djblets/auth/util.py", line 46, in _checklogin
    return view_func(request, *args, **kwargs)

  File "/subversion/reviewboard/lib/python2.5/site-packages/reviewboard/accounts/decorators.py", line 43, in _check_valid_prefs
    return view_func(request, *args, **kwargs)

  File "/subversion/reviewboard/lib/python2.5/site-packages/reviewboard/reviews/views.py", line 308, in dashboard
    return grid.render_to_response(template_name)

  File "/subversion/reviewboard/lib/python2.5/site-packages/djblets/datagrid/grids.py", line 700, in render_to_response
    self.load_state()

  File "/subversion/reviewboard/lib/python2.5/site-packages/djblets/datagrid/grids.py", line 535, in load_state
    self.precompute_objects()

  File "/subversion/reviewboard/lib/python2.5/site-packages/djblets/datagrid/grids.py", line 611, in precompute_objects
    pk__in=self.id_list).order_by())

  File "/subversion/reviewboard/lib/python2.5/site-packages/reviewboard/reviews/datagrids.py", line 401, in post_process_queryset
    queryset.with_counts(self.request.user))

  File "/subversion/reviewboard/lib/python2.5/site-packages/djblets/datagrid/grids.py", line 654, in post_process_queryset
    queryset = column.augment_queryset(queryset)

  File "/subversion/reviewboard/lib/python2.5/site-packages/reviewboard/reviews/datagrids.py", line 53, in augment_queryset
    pk__in=self.datagrid.id_list).values_list('pk', flat=True)

AttributeError: 'ReviewRequestDataGrid' object has no attribute 'id_list'


<WSGIRequest
GET:<QueryDict: {}>,
POST:<QueryDict: {}>,
COOKIES:{'collapsediffs': 'True', 'rbsessionid': '1e08fcc315438b09dde11813abdffb57'},
META:{'DOCUMENT_ROOT': '/subversion/htdocs',
 'GATEWAY_INTERFACE': 'CGI/1.1',
 'HTTP_ACCEPT': 'application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5',
 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.3',
 'HTTP_ACCEPT_ENCODING': 'gzip,deflate,sdch',
 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.8',
 'HTTP_CACHE_CONTROL': 'max-age=0',
 'HTTP_CONNECTION': 'keep-alive',
 'HTTP_COOKIE': 'rbsessionid=1e08fcc315438b09dde11813abdffb57; collapsediffs=True',
 'HTTP_HOST': 'reviewboard.renre.com',
 'HTTP_REFERER': 'http://reviewboard.renre.com/r/2284/',
 'HTTP_USER_AGENT': 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_4; en-US) AppleWebKit/534.7 (KHTML, like Gecko) Chrome/7.0.517.41 Safari/534.7',
 'PATH': '/usr/bin:/bin',
 'PATH_INFO': u'/dashboard/',
 'PATH_TRANSLATED': '/subversion/configuration/dub-source02/reviewboard/reviewboard.wsgi/dashboard/',
 'QUERY_STRING': '',
 'REMOTE_ADDR': '10.114.204.28',
 'REMOTE_PORT': '56287',
 'REQUEST_METHOD': 'GET',
 'REQUEST_URI': '/dashboard/',
 'SCRIPT_FILENAME': '/subversion/configuration/dub-source02/reviewboard/reviewboard.wsgi',
 'SCRIPT_NAME': u'',
 'SCRIPT_URI': 'http://reviewboard.renre.com/dashboard/',
 'SCRIPT_URL': '/dashboard/',
 'SERVER_ADDR': '172.17.2.10',
 'SERVER_ADMIN': 'mtt@europe.renre.com',
 'SERVER_NAME': 'reviewboard.renre.com',
 'SERVER_PORT': '80',
 'SERVER_PROTOCOL': 'HTTP/1.1',
 'SERVER_SIGNATURE': '<address>Apache/2.2.9 (Unix) mod_ssl/2.2.9 OpenSSL/0.9.8g DAV/2 SVN/1.6.5 mod_wsgi/2.4 Python/2.5.4 Server at reviewboard.renre.com Port 80</address>\n',
 'SERVER_SOFTWARE': 'Apache/2.2.9 (Unix) mod_ssl/2.2.9 OpenSSL/0.9.8g DAV/2 SVN/1.6.5 mod_wsgi/2.4 Python/2.5.4',
 'UNIQUE_ID': 'TMGV9H8AAAEAAAX0Zq0AAAAE',
 'mod_wsgi.application_group': 'reviewboard.renre.com|',
 'mod_wsgi.callable_object': 'application',
 'mod_wsgi.listener_host': '',
 'mod_wsgi.listener_port': '80',
 'mod_wsgi.process_group': 'reviewboard',
 'mod_wsgi.reload_mechanism': '1',
 'mod_wsgi.script_reloading': '1',
 'mod_wsgi.version': (2, 4),
 'wsgi.errors': <mod_wsgi.Log object at 0xb129c90>,
 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0xac01e40>,
 'wsgi.input': <mod_wsgi.Input object at 0xad52bf0>,
 'wsgi.multiprocess': True,
 'wsgi.multithread': True,
 'wsgi.run_once': False,
 'wsgi.url_scheme': 'http',
 'wsgi.version': (1, 0)}>
david
#1 david
  • +Component-Dashboard
david
#2 david
What version of djblets is this installation using?
  • +NeedInfo
david
#3 david
Actually, this is already filed.