Server Error - Managing Courses

Bug #331145 reported by Phillip Tarrant on 2009-02-18
2
Affects Status Importance Assigned to Milestone
SchoolTool
Undecided
Unassigned

Bug Description

When accessing course's to add a teacher i get the following error.

Exception

  TypeError: ('Could not adapt', <schooltool.course.section.Section object at 0xb7d96ec>, <InterfaceClass schooltool.timetable.interfaces.ITimetables>)
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: <zope.app.pagetemplate.simpleviewclass.SimpleViewClass from /usr/lib/python2.4/site-packages/schooltool/course/browser/templates/section.pt object at 0xb7d54ec>
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/zope/app/pagetemplate/simpleviewclass.py", line 44, in __call__
  return self.index(*args, **kw)
File "/usr/lib/python2.4/site-packages/zope/app/pagetemplate/viewpagetemplatefile.py", line 83, in __call__
  return self.im_func(im_self, *args, **kw)
File "/usr/lib/python2.4/site-packages/zope/app/pagetemplate/viewpagetemplatefile.py", line 51, in __call__
  sourceAnnotations=getattr(debug_flags, 'sourceAnnotations', 0),
File "/usr/lib/python2.4/site-packages/zope/pagetemplate/pagetemplate.py", line 115, in pt_render
  strictinsert=0, sourceAnnotations=sourceAnnotations)()
Template "/usr/lib/python2.4/site-packages/schooltool/course/browser/templates/section.pt"
File "/usr/lib/python2.4/site-packages/zope/tal/talinterpreter.py", line 271, in __call__
  self.interpret(self.program)
File "/usr/lib/python2.4/site-packages/zope/tal/talinterpreter.py", line 346, in interpret
  handlers[opcode](self, args)
File "/usr/lib/python2.4/site-packages/zope/tal/talinterpreter.py", line 891, in do_useMacro
  self.interpret(macro)
File "/usr/lib/python2.4/site-packages/zope/tal/talinterpreter.py", line 346, in interpret
  handlers[opcode](self, args)
File "/usr/lib/python2.4/site-packages/zope/tal/talinterpreter.py", line 536, in do_optTag_tal
  self.do_optTag(stuff)
File "/usr/lib/python2.4/site-packages/zope/tal/talinterpreter.py", line 521, in do_optTag
  return self.no_tag(start, program)
File "/usr/lib/python2.4/site-packages/zope/tal/talinterpreter.py", line 516, in no_tag
  self.interpret(program)
File "/usr/lib/python2.4/site-packages/zope/tal/talinterpreter.py", line 346, in interpret
  handlers[opcode](self, args)
File "/usr/lib/python2.4/site-packages/zope/tal/talinterpreter.py", line 536, in do_optTag_tal
  self.do_optTag(stuff)
File "/usr/lib/python2.4/site-packages/zope/tal/talinterpreter.py", line 521, in do_optTag
  return self.no_tag(start, program)
File "/usr/lib/python2.4/site-packages/zope/tal/talinterpreter.py", line 516, in no_tag
  self.interpret(program)
File "/usr/lib/python2.4/site-packages/zope/tal/talinterpreter.py", line 346, in interpret
  handlers[opcode](self, args)
File "/usr/lib/python2.4/site-packages/zope/tal/talinterpreter.py", line 745, in do_insertStructure_tal
  structure = self.engine.evaluateStructure(expr)
File "/usr/lib/python2.4/site-packages/zope/tales/tales.py", line 696, in evaluate
  return expression(self)
Template "/usr/lib/python2.4/site-packages/schooltool/skin/templates/view_macros.pt", line 87, column 6
  Expression: <StringExpr u'schooltool.ActionsMenu'>
File "/usr/lib/python2.4/site-packages/zope/contentprovider/tales.py", line 80, in __call__
  return provider.render()
File "/usr/lib/python2.4/site-packages/schooltool/skin/skin.py", line 134, in render
  return self.template(viewlets=viewlets_with_content)
File "/usr/lib/python2.4/site-packages/zope/app/pagetemplate/viewpagetemplatefile.py", line 83, in __call__
  return self.im_func(im_self, *args, **kw)
File "/usr/lib/python2.4/site-packages/zope/app/pagetemplate/viewpagetemplatefile.py", line 51, in __call__
  sourceAnnotations=getattr(debug_flags, 'sourceAnnotations', 0),
File "/usr/lib/python2.4/site-packages/zope/pagetemplate/pagetemplate.py", line 115, in pt_render
  strictinsert=0, sourceAnnotations=sourceAnnotations)()
Template "/usr/lib/python2.4/site-packages/schooltool/skin/templates/actionsbar.pt"
File "/usr/lib/python2.4/site-packages/zope/tal/talinterpreter.py", line 271, in __call__
  self.interpret(self.program)
File "/usr/lib/python2.4/site-packages/zope/tal/talinterpreter.py", line 346, in interpret
  handlers[opcode](self, args)
File "/usr/lib/python2.4/site-packages/zope/tal/talinterpreter.py", line 586, in do_setLocal_tal
  self.engine.setLocal(name, self.engine.evaluateValue(expr))
File "/usr/lib/python2.4/site-packages/zope/tales/tales.py", line 696, in evaluate
  return expression(self)
Template "/usr/lib/python2.4/site-packages/schooltool/skin/templates/actionsbar.pt", line 1, column 0
  Expression: <PathExpr standard:u'view/context/@@view_get_menu/schooltool_actions'>
File "/usr/lib/python2.4/site-packages/zope/tales/expressions.py", line 217, in __call__
  return self._eval(econtext)
File "/usr/lib/python2.4/site-packages/zope/tales/expressions.py", line 194, in _eval
  ob = self._subexprs[-1](econtext)
File "/usr/lib/python2.4/site-packages/zope/tales/expressions.py", line 124, in _eval
  ob = self._traverser(ob, element, econtext)
File "/usr/lib/python2.4/site-packages/zope/app/pagetemplate/engine.py", line 68, in __call__
  request=request)
File "/usr/lib/python2.4/site-packages/zope/traversing/adapters.py", line 164, in traversePathElement
  return traversable.traverse(nm, further_path)
Extra information: (<zope.app.publisher.browser.viewmeta.MenuAccessView object at 0xb7d52ec>, 'schooltool_actions')
File "/usr/lib/python2.4/site-packages/zope/traversing/adapters.py", line 49, in traverse
  return subject[name]
Extra information: (<zope.app.publisher.browser.viewmeta.MenuAccessView object at 0xb7d52ec>, 'schooltool_actions', [])
File "/usr/lib/python2.4/site-packages/zope/app/publisher/browser/menu.py", line 206, in __getitem__
  return getMenu(menuId, self.context, self.request)
File "/usr/lib/python2.4/site-packages/zope/app/publisher/browser/menu.py", line 190, in getMenu
  return menu.getMenuItems(object, request)
File "/usr/lib/python2.4/site-packages/zope/app/publisher/browser/menu.py", line 55, in getMenuItems
  if item.available():
File "/usr/lib/python2.4/site-packages/zope/app/publisher/browser/menu.py", line 127, in available
  view = traverser.traverseRelativeURL(
File "/usr/lib/python2.4/site-packages/zope/app/publication/browser.py", line 47, in traverseRelativeURL
  ob = self.traversePath(request, ob, path)
File "/usr/lib/python2.4/site-packages/zope/app/publication/publicationtraverse.py", line 95, in traversePath
  ob = self.traverseName(request, ob, name)
File "/usr/lib/python2.4/site-packages/zope/app/publication/publicationtraverse.py", line 61, in traverseName
  ob2 = adapter.publishTraverse(request, nm)
File "/usr/lib/python2.4/site-packages/schooltool/traverser/traverser.py", line 50, in publishTraverse
  return named_traverser.publishTraverse(request, name)
File "/usr/lib/python2.4/site-packages/schooltool/timetable/browser/__init__.py", line 123, in publishTraverse
  return ITimetables(self.context).timetables

Phillip Tarrant (ptarrant) wrote :

A reinstall of school tool seemed to fix the issue.

Changed in schooltool:
status: New → Incomplete
tags: added: timetables traceback
Changed in schooltool:
status: Incomplete → Fix Committed
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