Interventions tab crashes when there are no terms set up
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.
Traceback
File "/home/
obj = request.
File "/home/
ob = super(BrowserRe
File "/home/
ob = super(HTTPRequest, self).traverse(obj)
File "/home/
obj = publication.
File "/home/
ob2 = adapter.
File "/home/
return named_traverser
File "/home/
return self._traverse(
File "/home/
name=
File "/home/
return adapter_
File "/home/
return siteinfo.
File "/home/
return getIntervention
File "/home/
schoolyear = ISchoolYear(term)
Related branches
- Justas Sadzevičius: Pending requested
-
Diff: 442 lines (+231/-57)7 files modifiedsrc/schooltool/intervention/browser/README.txt (+90/-33)
src/schooltool/intervention/browser/configure.zcml (+21/-1)
src/schooltool/intervention/browser/intervention.py (+51/-13)
src/schooltool/intervention/browser/intervention_startup.pt (+14/-10)
src/schooltool/intervention/browser/intervention_students.pt (+27/-0)
src/schooltool/intervention/browser/no_current_term.txt (+24/-0)
src/schooltool/intervention/traversal.py (+4/-0)
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 |
Changed in schooltool.intervention: | |
status: | Fix Committed → Fix Released |
The crash was fixed by dashboard work, "no current term" explanation is shown.