AttributeError: 'CourseWorksheet' object has no attribute 'getCategoryWeights' - adding worksheet to course

Bug #1186231 reported by alchemist on 2013-05-31
This bug affects 3 people
Affects Status Importance Assigned to Milestone
SchoolTool Gradebook
Douglas Cerna

Bug Description

Ubuntu 13.04 64bit
Schooltool 2.4.1

Adding worksheet to course

Server Error
An internal server error has occurred. This most likely means that you have found a bug in SchoolTool. Please report it on the issue tracker.

AttributeError: 'CourseWorksheet' object has no attribute 'getCategoryWeights'

File "/usr/lib/python2.7/dist-packages/zope/publisher/", line 132, in publish
  result = publication.callObject(request, obj)
File "/usr/lib/python2.7/dist-packages/zope/app/publication/", line 205, in callObject
  return mapply(ob, request.getPositionalArguments(), request)
File "/usr/lib/python2.7/dist-packages/zope/publisher/", line 107, in mapply
  return debug_call(obj, args)
Extra information: < object at 0x7fe2b473c3d0>
File "/usr/lib/python2.7/dist-packages/zope/publisher/", line 113, in debug_call
  return obj(*args)
File "/usr/lib/python2.7/dist-packages/schooltool/skin/flourish/", line 89, in __call__
File "/usr/lib/python2.7/dist-packages/schooltool/gradebook/browser/", line 348, in update
  self.deploy(self.course, term, template)
File "/usr/lib/python2.7/dist-packages/schooltool/gradebook/browser/", line 268, in deploy
  copyActivities(removeSecurityProxy(template), deployedWorksheet)
File "/usr/lib/python2.7/dist-packages/schooltool/gradebook/browser/", line 86, in copyActivities
  for category, weight in sourceWorksheet.getCategoryWeights().items():

Changed in schooltool:
status: New → Triaged
importance: Undecided → Critical
Changed in schooltool:
assignee: nobody → Douglas Cerna (replaceafill)
affects: schooltool → schooltool.gradebook
Changed in schooltool.gradebook:
status: Triaged → Fix Committed
Changed in schooltool.gradebook:
milestone: none → 2.6.1
Changed in schooltool.gradebook:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers