Select a term/year - error if section is not scheduled for that term

Bug #868421 reported by Tom Hoffman
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
SchoolTool Journal
Fix Released
High
Justas Sadzevičius

Bug Description

Perhaps the menu should be smarter.

Tags: traceback
Changed in schooltool.lyceum.journal:
importance: Undecided → High
status: New → Triaged
Revision history for this message
Gediminas Paulauskas (menesis) wrote :

Term or year.

To reproduce, create a new schoolyear, go to journal, and select the new schoolyear.

Traceback

File "/home/menesis/.buildout/eggs/zope.publisher-3.12.6-py2.7.egg/zope/publisher/publish.py", line 132, in publish
  result = publication.callObject(request, obj)
File "/home/menesis/.buildout/eggs/zope.app.publication-3.13.2-py2.7.egg/zope/app/publication/zopepublication.py", line 207, in callObject
  return mapply(ob, request.getPositionalArguments(), request)
File "/home/menesis/.buildout/eggs/zope.publisher-3.12.6-py2.7.egg/zope/publisher/publish.py", line 107, in mapply
  return debug_call(obj, args)
Extra information: <schooltool.skin.flourish.zcml_content.FlourishLyceumSectionJournalView_index.html object at 0xdd19fcc>
File "/home/menesis/.buildout/eggs/zope.publisher-3.12.6-py2.7.egg/zope/publisher/publish.py", line 113, in debug_call
  return obj(*args)
File "/home/menesis/src/schooltool/flourish/src/schooltool/src/schooltool/skin/flourish/page.py", line 68, in __call__
  self.update()
File "/home/menesis/src/schooltool/flourish/src/schooltool.lyceum.journal/src/schooltool/lyceum/journal/browser/journal.py", line 715, in update
  meetings = self.all_meetings
File "/home/menesis/.buildout/eggs/zope.cachedescriptors-3.5.1-py2.7.egg/zope/cachedescriptors/property.py", line 71, in __get__
  value = func(inst)
File "/home/menesis/src/schooltool/flourish/src/schooltool.lyceum.journal/src/schooltool/lyceum/journal/browser/journal.py", line 436, in all_meetings
  return self.allMeetings()
File "/home/menesis/src/schooltool/flourish/src/schooltool.lyceum.journal/src/schooltool/lyceum/journal/browser/journal.py", line 421, in allMeetings
  term = removeSecurityProxy(self.selected_term)
File "/home/menesis/.buildout/eggs/zope.cachedescriptors-3.5.1-py2.7.egg/zope/cachedescriptors/property.py", line 71, in __get__
  value = func(inst)
File "/home/menesis/src/schooltool/flourish/src/schooltool.lyceum.journal/src/schooltool/lyceum/journal/browser/journal.py", line 490, in selected_term
  return self.getSelectedTerm()
File "/home/menesis/src/schooltool/flourish/src/schooltool.lyceum.journal/src/schooltool/lyceum/journal/browser/journal.py", line 818, in getSelectedTerm
  term = terms[term_id]
File "/home/menesis/.buildout/eggs/zope.container-3.12.0-py2.7-linux-i686.egg/zope/container/btree.py", line 105, in __getitem__
  return self._SampleContainer__data[key]
KeyError: u'2011-fall'

summary: - • Journal select a term - error if section is not scheduled for that
- term
+ Journal select a term - error if section is not scheduled for that term
summary: - Journal select a term - error if section is not scheduled for that term
+ Select a term/year - error if section is not scheduled for that term
Revision history for this message
Gediminas Paulauskas (menesis) wrote :

Just happened in different place - teacher clicked on "Journal" link inside the event box in calendar. It is scheduled, obviously.

Changed in schooltool.lyceum.journal:
assignee: nobody → Justas Sadzevičius (justas-pov)
milestone: none → 1.9.3
tags: added: traceback
Changed in schooltool.lyceum.journal:
status: Triaged → Fix Committed
Changed in schooltool.lyceum.journal:
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.