cant publish report card template
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SchoolTool Gradebook |
Fix Released
|
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/
result = publication.
File "/usr/lib/
return mapply(ob, request.
File "/usr/lib/
return debug_call(obj, args)
Extra information: schooltool.
File "/usr/lib/
return obj(*args)
File "/usr/lib/
self.update()
File "/usr/lib/
self.deploy(term, template)
File "/usr/lib/
if new_index title_index:
Modules
schooltool 2.6.2 (/usr/lib/
schooltool.cando 2.6.1 (/usr/lib/
schooltool.
schooltool.
schooltool.
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
Related branches
Changed in schooltool.gradebook: | |
status: | New → Triaged |
importance: | Undecided → High |
importance: | High → Critical |
assignee: | nobody → Gediminas Paulauskas (menesis) |
milestone: | none → 2.6.4 |
Changed in schooltool.gradebook: | |
status: | Fix Committed → Fix Released |
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