Red Hat Bugzilla – Bug 840724
Group activity page: AttributeError: 'NoneType' object has no attribute 'display_name'
Last modified: 2014-12-07 20:13:01 EST
Version-Release number of selected component (if applicable):
Tried to view /activity/groups:
2012-07-17 01:04:02,289 cherrypy.msg INFO HTTP: Page handler: <bound method Activities.group of <bkr.server.activity.Activities object at 0x7f5f2a61b410>>
Traceback (most recent call last):
File "build/lib/bkr/server/templates/my_paginate_datagrid.py", line 165, in _pull
File "/usr/lib/python2.6/site-packages/turbogears/widgets/datagrid.py", line 66, in get_field
File "/usr/lib/python2.6/site-packages/bkr/server/activity.py", line 132, in <lambda>
widgets.PaginateDataGrid.Column(name='object_name', getter=lambda x: x.object_name(), title='Object', options=dict(sortable=False)),
File "/usr/lib/python2.6/site-packages/bkr/server/model.py", line 3089, in object_name
return "Group: %s" % self.object.display_name
AttributeError: 'NoneType' object has no attribute 'display_name'
Error in code generated from template file 'build/lib/bkr/server/templates/grid.kid'
rmancy theorised that this is because the group has been deleted but its activity rows remain.
This is correct. It's an existing bug,and I'd say we've just been lucky that we haven't hit it before.
It should be solved by this patch here http://gerrit.beaker-project.org/#/c/1216/
Needed for bug 747000
Beaker 0.9.1 has been released.