Traceback trying to view student's contacts

Bug #475586 reported by Gediminas Paulauskas on 2009-11-05
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SchoolTool
Undecided
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/publish.py", line 130, in publish
    obj = request.traverse(obj)
  File "/usr/lib/python2.5/site-packages/zope/publisher/browser.py", line 534, in traverse
    ob, add_steps = publication.getDefaultTraversal(self, ob)
  File "/usr/lib/python2.5/site-packages/zope/app/publication/browser.py", line 66, in getDefaultTraversal
    return ob.browserDefault(request)
  File "/usr/lib/python2.5/site-packages/schooltool/securitypolicy/policy.py", line 45, in checkPermission
    return self.checkByAdaptation(permission, obj)
  File "/usr/lib/python2.5/site-packages/schooltool/securitypolicy/policy.py", line 58, in checkByAdaptation
    if crowd.contains(participation.principal):
  File "/usr/lib/python2.5/site-packages/schooltool/securitypolicy/crowds.py", line 89, in contains
    if crowd.contains(principal):
  File "/usr/lib/python2.5/site-packages/schooltool/basicperson/security.py", 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