cannot access gradebook in teacher login

Bug #591872 reported by Mandi Aumann
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
SchoolTool Gradebook
Fix Released
High
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: There isn't enough context to get URL information. This is probably due to a bug in setting up location information.
Traceback

  File "/usr/lib/python2.6/dist-packages/zope/publisher/publish.py", line 134, in publish
  result = publication.callObject(request, obj)
File "/usr/lib/python2.6/dist-packages/zope/app/publication/zopepublication.py", line 205, in callObject
  return mapply(ob, request.getPositionalArguments(), request)
File "/usr/lib/python2.6/dist-packages/zope/publisher/publish.py", line 109, in mapply
  return debug_call(obj, args)
Extra information: <zope.browserpage.simpleviewclass.SimpleViewClass from /usr/lib/python2.6/dist-packages/schooltool/gradebook/browser/gradebook_startup.pt object at 0xd671c4c>
File "/usr/lib/python2.6/dist-packages/zope/publisher/publish.py", line 115, in debug_call
  return obj(*args)
File "/usr/lib/python2.6/dist-packages/schooltool/gradebook/browser/gradebook.py", line 114, in __call__
  return template(self)
File "/usr/lib/python2.6/dist-packages/zope/browserpage/viewpagetemplatefile.py", line 51, in __call__
  sourceAnnotations=getattr(debug_flags, 'sourceAnnotations', 0),
File "/usr/lib/python2.6/dist-packages/zope/pagetemplate/pagetemplate.py", line 115, in pt_render
  strictinsert=0, sourceAnnotations=sourceAnnotations)()
Template "/usr/lib/python2.6/dist-packages/schooltool/gradebook/browser/gradebook_startup.pt"
File "/usr/lib/python2.6/dist-packages/zope/tal/talinterpreter.py", line 271, in __call__
  self.interpret(self.program)
File "/usr/lib/python2.6/dist-packages/zope/tal/talinterpreter.py", line 343, in interpret
  handlers[opcode](self, args)
File "/usr/lib/python2.6/dist-packages/zope/tal/talinterpreter.py", line 851, in do_condition
  if not self.tal or self.engine.evaluateBoolean(condition):
File "/usr/lib/python2.6/dist-packages/zope/tales/tales.py", line 701, in evaluateBoolean
  return not not self.evaluate(expr)
File "/usr/lib/python2.6/dist-packages/zope/tales/tales.py", line 696, in evaluate
  return expression(self)
Template "/usr/lib/python2.6/dist-packages/schooltool/gradebook/browser/gradebook_startup.pt", line 1, column 0
  Expression: <PathExpr standard:u'view/update'>
File "/usr/lib/python2.6/dist-packages/zope/tales/expressions.py", line 217, in __call__
  return self._eval(econtext)
File "/usr/lib/python2.6/dist-packages/zope/tales/expressions.py", line 211, in _eval
  return ob()
File "/usr/lib/python2.6/dist-packages/schooltool/gradebook/browser/gradebook.py", line 125, in update
  self.gradebookURL = absoluteURL(section, self.request)+ '/gradebook'
File "/usr/lib/python2.6/dist-packages/zope/traversing/browser/absoluteurl.py", line 35, in absoluteURL
  return zope.component.getMultiAdapter((ob, request), IAbsoluteURL)()
File "/usr/lib/python2.6/dist-packages/zope/traversing/browser/absoluteurl.py", line 71, in __call__
  return self.__str__()
File "/usr/lib/python2.6/dist-packages/zope/traversing/browser/absoluteurl.py", line 57, in __str__
  raise TypeError(_insufficientContext)

Related branches

Revision history for this message
Mandi Aumann (markandmandi) wrote :

Sorry - forgot to add that I logged in as the teacher, then clicked Gradebook at the top and this is the error I got.

Revision history for this message
Tom Hoffman (tom-hoffman) wrote :

Have a look at this when you get a chance, Alan.

Changed in schooltool:
assignee: nobody → Alan Elkner (aelkner)
milestone: none → next
Changed in schooltool:
importance: Undecided → High
milestone: next → 1.4.1
Revision history for this message
Alan Elkner (aelkner) wrote :

I will be fixing this bug very soon, but in the meantime, the teacher can solve the problem by going to his/her home page by clicking the Home tab, then clicking on any section and then clicking the Gradebook action link below the red bar, not the Gradebook tab.

Changed in schooltool:
milestone: 1.4.1 → 1.4.2
status: New → Confirmed
status: Confirmed → Triaged
Alan Elkner (aelkner)
Changed in schooltool:
status: Triaged → Fix Committed
affects: schooltool → schooltool.gradebook
Changed in schooltool.gradebook:
milestone: 1.4.2 → none
milestone: none → 0.7.1
Changed in schooltool.gradebook:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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