Error on Cancel in "Add section" view

Bug #1281050 reported by mida on 2014-02-17
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SchoolTool
High
Gediminas Paulauskas

Bug Description

=====================================
Пожалуйста, заполните шаги, чтобы воспроизвести эту ошибку здесь*:

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

Exception

UnicodeEncodeError: 'ascii' codec can't encode characters in position 45-49: ordinal not in range(128)

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.FlourishSectionAddView_addSection.html object at 0xb1f9460c
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/course/browser/section.py", line 1330, in update
  super(SectionAddView, self).update()
File "/usr/lib/python2.7/dist-packages/z3c/form/form.py", line 211, in update
  self.actions.execute()
File "/usr/lib/python2.7/dist-packages/z3c/form/action.py", line 99, in execute
  result = handler()
File "/usr/lib/python2.7/dist-packages/z3c/form/button.py", line 315, in __call__
  return handler(self.form, self.action)
File "/usr/lib/python2.7/dist-packages/z3c/form/button.py", line 170, in __call__
  return self.func(form, action)
File "/usr/lib/python2.7/dist-packages/schooltool/course/browser/section.py", line 1414, in handle_cancel_action
  self.request.response.redirect(url)
File "/usr/lib/python2.7/dist-packages/zope/publisher/browser.py", line 759, in redirect
  return super(BrowserResponse, self).redirect(location, status, trusted)
File "/usr/lib/python2.7/dist-packages/zope/publisher/http.py", line 877, in redirect
  location = str(location)

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, Sep 19 2013, 13:49:51)
[GCC 4.8.1]
Linux mida 3.11.0-17-generic #31-Ubuntu SMP Mon Feb 3 21:53:31 UTC 2014 i686 athlon
Filesystem encoding UTF-8, preferred UTF-8

Gediminas Paulauskas (menesis) wrote :

This happens when school year has non-ascii chars in its name. Quite a few similar errors were fixed recently. There are a couple more cases like this in section views.

summary: - 1
+ Error on Cancel in "Add section" view
Changed in schooltool:
status: New → Triaged
importance: Undecided → High
assignee: nobody → Gediminas Paulauskas (menesis)
milestone: none → 2.6.3
information type: Private Security → Public
Changed in schooltool:
status: Triaged → Fix Committed
Changed in schooltool:
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