cant publish report card template

Bug #1290167 reported by xris_xcess on 2014-03-10
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SchoolTool Gradebook
Critical
Gediminas Paulauskas

Bug Description

=====================================
Please fill in steps to reproduce this bug here:

=====================================

Exception

UnboundLocalError: local variable 'new_index' referenced before assignment

Traceback

File "/usr/lib/python2.7/dist-packages/zope/publisher/publish.py", line 132, in publish
  result = publication.callObject(request, obj)
File "/usr/lib/python2.7/dist-packages/zope/app/publication/zopepublication.py", line 205, in callObject
  return mapply(ob, request.getPositionalArguments(), request)
File "/usr/lib/python2.7/dist-packages/zope/publisher/publish.py", line 107, in mapply
  return debug_call(obj, args)
Extra information: schooltool.skin.flourish.zcml_content.FlourishReportSheetsView_report_sheets object at 0xb1121d8c
File "/usr/lib/python2.7/dist-packages/zope/publisher/publish.py", line 113, in debug_call
  return obj(*args)
File "/usr/lib/python2.7/dist-packages/schooltool/skin/flourish/page.py", line 96, in __call__
  self.update()
File "/usr/lib/python2.7/dist-packages/schooltool/gradebook/browser/report_card.py", line 309, in update
  self.deploy(term, template)
File "/usr/lib/python2.7/dist-packages/schooltool/gradebook/browser/report_card.py", line 331, in deploy
  if new_index title_index:

Modules

schooltool 2.6.2 (/usr/lib/python2.7/dist-packages)
schooltool.cando 2.6.1 (/usr/lib/python2.7/dist-packages)
schooltool.gradebook 2.6.2 (/usr/lib/python2.7/dist-packages)
schooltool.intervention 2.6.1 (/usr/lib/python2.7/dist-packages)
schooltool.lyceum.journal 2.6.2 (/usr/lib/python2.7/dist-packages)

Runtime

Python 2.7.5+ (default, Feb 27 2014, 19:39:55)
[GCC 4.8.1]
Linux vboxserver 3.11.0-17-generic #31-Ubuntu SMP Mon Feb 3 21:53:31 UTC 2014 i686 i686
Filesystem encoding UTF-8, preferred UTF-8

Changed in schooltool.gradebook:
status: New → Triaged
importance: Undecided → High
importance: High → Critical
assignee: nobody → Gediminas Paulauskas (menesis)
milestone: none → 2.6.4
Gediminas Paulauskas (menesis) wrote :

This error happened when deploying a report sheet using a shortened template title. For example,

Go to http://localhost:7081/gradebook/templates

Add report sheet template with title "Exam results"

Go to http://localhost:7080/report_sheets

Choose
Report Sheet Template: Exam results

Enter
Title: Exam

Click "Submit"

Result: Exception
Expected result: Report sheet titled "Exam" deployed

Changed in schooltool.gradebook:
status: Triaged → Fix Committed
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