Traceback trying to view student's contacts

Bug #475586 reported by Gediminas Paulauskas
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Justas Sadzevičius

Bug Description

Testing schooltool 1.2.0, logged in as a teacher, looked at one of my students, clicked Contacts

2009-11-05 18:50:43,264 http://localhost:7080/persons/grantas/contact/index.html
Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/zope/publisher/", line 130, in publish
    obj = request.traverse(obj)
  File "/usr/lib/python2.5/site-packages/zope/publisher/", line 534, in traverse
    ob, add_steps = publication.getDefaultTraversal(self, ob)
  File "/usr/lib/python2.5/site-packages/zope/app/publication/", line 66, in getDefaultTraversal
    return ob.browserDefault(request)
  File "/usr/lib/python2.5/site-packages/schooltool/securitypolicy/", line 45, in checkPermission
    return self.checkByAdaptation(permission, obj)
  File "/usr/lib/python2.5/site-packages/schooltool/securitypolicy/", line 58, in checkByAdaptation
    if crowd.contains(participation.principal):
  File "/usr/lib/python2.5/site-packages/schooltool/securitypolicy/", line 89, in contains
    if crowd.contains(principal):
  File "/usr/lib/python2.5/site-packages/schooltool/basicperson/", line 40, in contains
    groups = list(self.context.groups)
AttributeError: 'BoundContact' object has no attribute 'groups'

Changed in schooltool:
milestone: none → 1.2.1
status: New → Fix Committed
Changed in schooltool:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers