gradebook link on timed-out session throws an exception

Bug #391216 reported by Tom Hoffman on 2009-06-23
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SchoolTool Gradebook
Alan Elkner

Bug Description

This is when you click the link at the top of the page after a logged-in session has timed out. It should direct you to log back in.


  TypeError: ('Could not adapt', < object at 0x9a39dcc>, <InterfaceClass schooltool.person.interfaces.IPerson>)

  File "/usr/lib/python2.5/site-packages/zope/publisher/", line 133, in publish
  result = publication.callObject(request, obj)
File "/usr/lib/python2.5/site-packages/zope/app/publication/", line 167, in callObject
  return mapply(ob, request.getPositionalArguments(), request)
File "/usr/lib/python2.5/site-packages/zope/publisher/", line 108, in mapply
  return debug_call(obj, args)
Extra information: < from /usr/lib/python2.5/site-packages/schooltool/gradebook/browser/ object at 0xc0e838c>
File "/usr/lib/python2.5/site-packages/zope/publisher/", line 114, in debug_call
  return obj(*args)
File "/usr/lib/python2.5/site-packages/zope/app/pagetemplate/", line 44, in __call__
  return self.index(*args, **kw)
File "/usr/lib/python2.5/site-packages/zope/app/pagetemplate/", line 83, in __call__
  return self.im_func(im_self, *args, **kw)
File "/usr/lib/python2.5/site-packages/zope/app/pagetemplate/", line 51, in __call__
  sourceAnnotations=getattr(debug_flags, 'sourceAnnotations', 0),
File "/usr/lib/python2.5/site-packages/zope/pagetemplate/", line 115, in pt_render
  strictinsert=0, sourceAnnotations=sourceAnnotations)()
Template "/usr/lib/python2.5/site-packages/schooltool/gradebook/browser/"
File "/usr/lib/python2.5/site-packages/zope/tal/", line 271, in __call__
File "/usr/lib/python2.5/site-packages/zope/tal/", line 346, in interpret
  handlers[opcode](self, args)
File "/usr/lib/python2.5/site-packages/zope/tal/", line 854, in do_condition
  if not self.tal or self.engine.evaluateBoolean(condition):
File "/usr/lib/python2.5/site-packages/zope/tales/", line 701, in evaluateBoolean
  return not not self.evaluate(expr)
File "/usr/lib/python2.5/site-packages/zope/tales/", line 696, in evaluate
  return expression(self)
Template "/usr/lib/python2.5/site-packages/schooltool/gradebook/browser/", line 1, column 0
  Expression: <PathExpr standard:u'view/update'>
File "/usr/lib/python2.5/site-packages/zope/tales/", line 217, in __call__
  return self._eval(econtext)
File "/usr/lib/python2.5/site-packages/zope/tales/", line 211, in _eval
  return ob()
File "/usr/lib/python2.5/site-packages/schooltool/gradebook/browser/", line 60, in update
  self.person = IPerson(self.request.principal)

Changed in schooltool:
assignee: nobody → Alan Elkner (aelkner)
importance: Undecided → High
milestone: none → karmic
status: New → Triaged
description: updated
Alan Elkner (aelkner) on 2009-07-08
Changed in schooltool:
status: Triaged → Fix Committed
affects: schooltool → schooltool.gradebook
Changed in schooltool.gradebook:
milestone: karmic → none
milestone: none → 0.5.0
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.

Other bug subscribers