Printing report fails when there is no current term

Bug #379967 reported by muhuko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SchoolTool Gradebook
Fix Released
Medium
Alan Elkner

Bug Description

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.

Exception

  TypeError: ('Could not adapt', None, <InterfaceClass schooltool.schoolyear.interfaces.ISchoolYear>)
Traceback

  File "/usr/lib/python2.4/site-packages/zope/publisher/publish.py", line 133, in publish
  result = publication.callObject(request, obj)
File "/usr/lib/python2.4/site-packages/zope/app/publication/zopepublication.py", line 167, in callObject
  return mapply(ob, request.getPositionalArguments(), request)
File "/usr/lib/python2.4/site-packages/zope/publisher/publish.py", line 108, in mapply
  return debug_call(obj, args)
Extra information: <bound method StudentReportCardPDFView.__call__ of <zope.app.publisher.browser.viewmeta.StudentReportCardPDFView object at 0xb25066c>>
File "/usr/lib/python2.4/site-packages/zope/publisher/publish.py", line 114, in debug_call
  return obj(*args)
File "/usr/lib/python2.4/site-packages/schooltool/gradebook/browser/pdf_views.py", line 262, in __call__
  pdf_data = self.buildPDF()
File "/usr/lib/python2.4/site-packages/schooltool/gradebook/browser/pdf_views.py", line 254, in buildPDF
  report = ReportCard(None, self.students)
File "/usr/lib/python2.4/site-packages/schooltool/gradebook/browser/pdf_views.py", line 73, in __init__
  self.schoolyear = ISchoolYear(current_term)

Tags: traceback
tags: added: traceback
affects: schooltool → schooltool.gradebook
Changed in schooltool.gradebook:
importance: Undecided → Medium
Changed in schooltool.gradebook:
milestone: none → 0.5.0
assignee: nobody → Alan Elkner (aelkner)
status: New → Fix Released
summary: - print reports error
+ Printing report fails when there is no current term
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.