Comment 1 for bug 495872

Revision history for this message
Douglas Cerna (replaceafill) wrote : Re: Clicking on journal on calendar view results in error

I guess some of your usernames have non-ascii characters in them, right? Specifically a "ä" character? SchoolTool doesn't handle non-ascii usernames very well.

The problem in the code is in the schooltool.lyceum.journal.browser.journal.StudentNumberColumn class, in the getter method :

- urllib.quote(item.__name__))
+ urllib.quote(item.__name__.encode("utf-8")))

If you fix this, you get a new and similar error in the schooltool.lyceum.journal.browser.table.SelectStudentCellFormatter class, in its __call__ method:

- urllib.urlencode([('student', item.__name__)] +
+ urllib.urlencode([('student', item.__name__.encode("utf-8"))] +

Then you're able to look at the journal, but you cannot save grades for the students with non-ascii usernames :(