print reportcards error

Bug #379968 reported by muhuko on 2009-05-24
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SchoolTool
Medium
Alan Elkner
Ubuntu
Undecided
Unassigned

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)

muhuko (cmuhuko) wrote :

am new to schooltool i really find it to be a very efficient school management system. the error occurred after i tried to install true type fonts for pdf reports pliz help
thanks in advance

Tom Hoffman (tom-hoffman) wrote :

I imagine this comes up if the section is not assigned to a term, but we need to handle this kind of error gracefully and explain the problem to the user -- ideally linking directly to the page they need to go to to solve the problem. Also, I have to get caught up to this point in the documentation...

Changed in ubuntu:
status: New → Invalid
Changed in schooltool:
assignee: nobody → Alan Elkner (aelkner)
importance: Undecided → Medium
milestone: none → karmic
status: New → Triaged
Alan Elkner (aelkner) wrote :

The user now gets redirected to an error page rather than crashing when there is no current term set up.

Changed in schooltool:
status: Triaged → Fix Committed
Changed in schooltool:
milestone: karmic → 2009.4.14
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