Error on Cancel in "Add section" view

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

Bug Description

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



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


File "/usr/lib/python2.7/dist-packages/zope/publisher/", line 132, in publish
  result = publication.callObject(request, obj)
File "/usr/lib/python2.7/dist-packages/zope/app/publication/", line 205, in callObject
  return mapply(ob, request.getPositionalArguments(), request)
File "/usr/lib/python2.7/dist-packages/zope/publisher/", line 107, in mapply
  return debug_call(obj, args)
Extra information: object at 0xb1f9460c
File "/usr/lib/python2.7/dist-packages/zope/publisher/", line 113, in debug_call
  return obj(*args)
File "/usr/lib/python2.7/dist-packages/schooltool/skin/flourish/", line 96, in __call__
File "/usr/lib/python2.7/dist-packages/schooltool/course/browser/", line 1330, in update
  super(SectionAddView, self).update()
File "/usr/lib/python2.7/dist-packages/z3c/form/", line 211, in update
File "/usr/lib/python2.7/dist-packages/z3c/form/", line 99, in execute
  result = handler()
File "/usr/lib/python2.7/dist-packages/z3c/form/", line 315, in __call__
  return handler(self.form, self.action)
File "/usr/lib/python2.7/dist-packages/z3c/form/", line 170, in __call__
  return self.func(form, action)
File "/usr/lib/python2.7/dist-packages/schooltool/course/browser/", line 1414, in handle_cancel_action
File "/usr/lib/python2.7/dist-packages/zope/publisher/", line 759, in redirect
  return super(BrowserResponse, self).redirect(location, status, trusted)
File "/usr/lib/python2.7/dist-packages/zope/publisher/", line 877, in redirect
  location = str(location)


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)


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