Interventions tab crashes when there are no terms set up

Bug #480616 reported by Justas Sadzevičius
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SchoolTool Intervention
Fix Released
High
Alan Elkner

Bug Description

Fresh Data.fs, create a school year, don't add a term. Log in, hit 'Interventions'.

Exception

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

  File "/home/justas/.buildout/eggs/zope.publisher-3.4.6-py2.5.egg/zope/publisher/publish.py", line 130, in publish
  obj = request.traverse(obj)
File "/home/justas/.buildout/eggs/zope.publisher-3.4.6-py2.5.egg/zope/publisher/browser.py", line 513, in traverse
  ob = super(BrowserRequest, self).traverse(obj)
File "/home/justas/.buildout/eggs/zope.publisher-3.4.6-py2.5.egg/zope/publisher/http.py", line 463, in traverse
  ob = super(HTTPRequest, self).traverse(obj)
File "/home/justas/.buildout/eggs/zope.publisher-3.4.6-py2.5.egg/zope/publisher/base.py", line 263, in traverse
  obj = publication.traverseName(self, obj, entry_name)
File "/home/justas/.buildout/eggs/zope.app.publication-3.4.3-py2.5.egg/zope/app/publication/publicationtraverse.py", line 61, in traverseName
  ob2 = adapter.publishTraverse(request, nm)
File "/home/justas/src/schooltool/schooltool_bugfixes/src/schooltool/traverser/traverser.py", line 50, in publishTraverse
  return named_traverser.publishTraverse(request, name)
File "/home/justas/src/schooltool/schooltool_bugfixes/src/schooltool/traverser/traverser.py", line 84, in publishTraverse
  return self._traverse(request, name)
File "/home/justas/src/schooltool/schooltool_bugfixes/src/schooltool/traverser/traverser.py", line 123, in _traverse
  name=self.adapterName)
File "/home/justas/.buildout/eggs/zope.component-3.4.0-py2.5.egg/zope/component/_api.py", line 96, in queryAdapter
  return adapter_hook(interface, object, name, default)
File "/home/justas/.buildout/eggs/zope.app.component-3.4.1-py2.5.egg/zope/app/component/hooks.py", line 95, in adapter_hook
  return siteinfo.adapter_hook(interface, object, name, default)
File "/home/justas/src/schooltool/schooltool.intervention_trunk/src/schooltool/intervention/intervention.py", line 292, in getSchoolToolApplicationInterventionSchoolYear
  return getInterventionSchoolYear()
File "/home/justas/src/schooltool/schooltool.intervention_trunk/src/schooltool/intervention/intervention.py", line 310, in getInterventionSchoolYear
  schoolyear = ISchoolYear(term)

Related branches

summary: - Interventions tab crashes when there's only one schoolyear and no terms
- set up
+ Interventions tab crashes when there are no terms set up
Revision history for this message
Gediminas Paulauskas (menesis) wrote :

The crash was fixed by dashboard work, "no current term" explanation is shown.

Changed in schooltool.intervention:
assignee: nobody → Alan Elkner (aelkner)
importance: Undecided → High
milestone: none → 0.3.0
status: New → Fix Committed
Changed in schooltool.intervention:
status: Fix Committed → Fix Released
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.