Discussion:
[schooltool] non ascii characters
Michael Wigginton
2008-05-19 05:03:54 UTC
Permalink
Have noticed there is a bug report filed already
for non-ascii unicode causing errors.

Just curious as to the progress, since otherwise
schooltool is perfect for our schools as it is ATM.

Also interested in knowing who is in charge of
Korean translations and how I might be able to
take part in that process.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.schooltool.org/pipermail/schooltool/attachments/20080519/662bdf1b/attachment.htm
Ignas Mikalajunas
2008-05-19 07:43:00 UTC
Permalink
On Mon, May 19, 2008 at 8:03 AM, Michael Wigginton
Post by Michael Wigginton
Have noticed there is a bug report filed already
for non-ascii unicode causing errors.
That bug shoud be gone I think, at least in most cases, if you can
still reproduce it - could you please indicate how and where, maybe
even provide a traceback and an error message.
Post by Michael Wigginton
Just curious as to the progress, since otherwise
schooltool is perfect for our schools as it is ATM.
Also interested in knowing who is in charge of
Korean translations and how I might be able to
take part in that process.
I don't think anyone is, you can just go and start translating on
launchpad and reporting all the places you can't translate, because
there are quite a few of these left.

you can find te translations page here:

https://translations.launchpad.net/schooltool/

Ignas
Michael Wigginton
2008-05-19 07:53:28 UTC
Permalink
Specifically the Journal when opening for a class. Using only
English names works - Korean names crashes.

The trace back is as follows

File "/usr/lib/python2.4/site-packages/zope/publisher/publish.py",
line 133, in publish
result = publication.callObject(request, obj)
File "/usr/lib/python2.4/site-packages/zope/app/publication/zopepublication.py",
line 167, in callObject
return mapply(ob, request.getPositionalArguments(), request)
File "/usr/lib/python2.4/site-packages/zope/publisher/publish.py",
line 108, in mapply
return debug_call(obj, args)
Extra information: <bound method LyceumSectionJournalView.__call__ of
<zope.app.publisher.browser.viewmeta.LyceumSectionJournalView object
at 0x9cddaac>>
File "/usr/lib/python2.4/site-packages/zope/publisher/publish.py",
line 114, in debug_call
return obj(*args)
File "/usr/lib/python2.4/site-packages/schooltool/lyceum/journal/browser/journal.py",
line 342, in __call__
return self.template()
File "/usr/lib/python2.4/site-packages/zope/app/pagetemplate/viewpagetemplatefile.py",
line 83, in __call__
return self.im_func(im_self, *args, **kw)
File "/usr/lib/python2.4/site-packages/zope/app/pagetemplate/viewpagetemplatefile.py",
line 51, in __call__
sourceAnnotations=getattr(debug_flags, 'sourceAnnotations', 0),
File "/usr/lib/python2.4/site-packages/zope/pagetemplate/pagetemplate.py",
line 115, in pt_render
strictinsert=0, sourceAnnotations=sourceAnnotations)()
Template "/usr/lib/python2.4/site-packages/schooltool/lyceum/journal/browser/templates/journal.pt"
File "/usr/lib/python2.4/site-packages/zope/tal/talinterpreter.py",
line 271, in __call__
self.interpret(self.program)
File "/usr/lib/python2.4/site-packages/zope/tal/talinterpreter.py",
line 346, in interpret
handlers[opcode](self, args)
File "/usr/lib/python2.4/site-packages/zope/tal/talinterpreter.py",
line 891, in do_useMacro
self.interpret(macro)
File "/usr/lib/python2.4/site-packages/zope/tal/talinterpreter.py",
line 346, in interpret
handlers[opcode](self, args)
File "/usr/lib/python2.4/site-packages/zope/tal/talinterpreter.py",
line 536, in do_optTag_tal
self.do_optTag(stuff)
File "/usr/lib/python2.4/site-packages/zope/tal/talinterpreter.py",
line 521, in do_optTag
return self.no_tag(start, program)
File "/usr/lib/python2.4/site-packages/zope/tal/talinterpreter.py",
line 516, in no_tag
self.interpret(program)
File "/usr/lib/python2.4/site-packages/zope/tal/talinterpreter.py",
line 346, in interpret
handlers[opcode](self, args)
File "/usr/lib/python2.4/site-packages/zope/tal/talinterpreter.py",
line 949, in do_defineSlot
self.interpret(slot)
File "/usr/lib/python2.4/site-packages/zope/tal/talinterpreter.py",
line 346, in interpret
handlers[opcode](self, args)
File "/usr/lib/python2.4/site-packages/zope/tal/talinterpreter.py",
line 713, in do_insertTranslation
self.interpret(stuff[1])
File "/usr/lib/python2.4/site-packages/zope/tal/talinterpreter.py",
line 346, in interpret
handlers[opcode](self, args)
File "/usr/lib/python2.4/site-packages/zope/tal/talinterpreter.py",
line 655, in do_i18nVariable
self.interpret(program)
File "/usr/lib/python2.4/site-packages/zope/tal/talinterpreter.py",
line 346, in interpret
handlers[opcode](self, args)
File "/usr/lib/python2.4/site-packages/zope/tal/talinterpreter.py",
line 534, in do_optTag_tal
self.no_tag(stuff[-2], stuff[-1])
File "/usr/lib/python2.4/site-packages/zope/tal/talinterpreter.py",
line 516, in no_tag
self.interpret(program)
File "/usr/lib/python2.4/site-packages/zope/tal/talinterpreter.py",
line 346, in interpret
handlers[opcode](self, args)
File "/usr/lib/python2.4/site-packages/zope/tal/talinterpreter.py",
line 623, in do_insertText_tal
text = self.engine.evaluateText(stuff[0])
File "/usr/lib/python2.4/site-packages/zope/tales/tales.py", line 704,
in evaluateText
text = self.evaluate(expr)
File "/usr/lib/python2.4/site-packages/zope/tales/tales.py", line 696,
in evaluate
return expression(self)
Template "/usr/lib/python2.4/site-packages/schooltool/lyceum/journal/browser/templates/journal.pt",
line 6, column 18
Expression: <PythonExpr ( view.monthTitle(view.active_month))>
File "/usr/lib/python2.4/site-packages/zope/tales/pythonexpr.py", line
59, in __call__
return eval(self._code, vars)
Extra information: u'( view.monthTitle(view.active_month))'
File "<string>", line 0, in ?

File "/usr/lib/python2.4/site-packages/zope/cachedescriptors/property.py",
line 71, in __get__
value = func(inst)
File "/usr/lib/python2.4/site-packages/schooltool/lyceum/journal/browser/journal.py",
line 556, in active_month
return available_months[0]


http://mikwig.co.cc:7080/sections/1/journal/

it can be seen here.

The username and password are the default as this is a test site only.

Thankyou for feedback so far.
Post by Ignas Mikalajunas
On Mon, May 19, 2008 at 8:03 AM, Michael Wigginton
Post by Michael Wigginton
Have noticed there is a bug report filed already
for non-ascii unicode causing errors.
That bug shoud be gone I think, at least in most cases, if you can
still reproduce it - could you please indicate how and where, maybe
even provide a traceback and an error message.
Post by Michael Wigginton
Just curious as to the progress, since otherwise
schooltool is perfect for our schools as it is ATM.
Also interested in knowing who is in charge of
Korean translations and how I might be able to
take part in that process.
I don't think anyone is, you can just go and start translating on
launchpad and reporting all the places you can't translate, because
there are quite a few of these left.
https://translations.launchpad.net/schooltool/
Ignas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.schooltool.org/pipermail/schooltool/attachments/20080519/4bafd488/attachment.htm
Ignas Mikalajunas
2008-05-19 09:12:27 UTC
Permalink
On Mon, May 19, 2008 at 10:53 AM, Michael Wigginton
Post by Michael Wigginton
Specifically the Journal when opening for a class. Using only
English names works - Korean names crashes.
The trace back is as follows
File "/usr/lib/python2.4/site-packages/zope/publisher/publish.py", line 133,
in publish
result = publication.callObject(request, obj)
File
"/usr/lib/python2.4/site-packages/zope/app/publication/zopepublication.py",
line 167, in callObject
return mapply(ob, request.getPositionalArguments(), request)
File "/usr/lib/python2.4/site-packages/zope/publisher/publish.py", line 108,
in mapply
return debug_call(obj, args)
Extra information: <bound method LyceumSectionJournalView.__call__ of
<zope.app.publisher.browser.viewmeta.LyceumSectionJournalView object at
0x9cddaac>>
File "/usr/lib/python2.4/site-packages/zope/publisher/publish.py", line 114,
in debug_call
return obj(*args)
File
"/usr/lib/python2.4/site-packages/schooltool/lyceum/journal/browser/journal.py",
line 342, in __call__
return self.template()
File
"/usr/lib/python2.4/site-packages/zope/app/pagetemplate/viewpagetemplatefile.py",
line 83, in __call__
return self.im_func(im_self, *args, **kw)
File
"/usr/lib/python2.4/site-packages/zope/app/pagetemplate/viewpagetemplatefile.py",
line 51, in __call__
sourceAnnotations=getattr(debug_flags, 'sourceAnnotations', 0),
File "/usr/lib/python2.4/site-packages/zope/pagetemplate/pagetemplate.py",
line 115, in pt_render
strictinsert=0, sourceAnnotations=sourceAnnotations)()
Template
"/usr/lib/python2.4/site-packages/schooltool/lyceum/journal/browser/templates/journal.pt"
File "/usr/lib/python2.4/site-packages/zope/tal/talinterpreter.py", line
271, in __call__
self.interpret(self.program)
File "/usr/lib/python2.4/site-packages/zope/tal/talinterpreter.py", line
346, in interpret
handlers[opcode](self, args)
File "/usr/lib/python2.4/site-packages/zope/tal/talinterpreter.py", line
891, in do_useMacro
self.interpret(macro)
File "/usr/lib/python2.4/site-packages/zope/tal/talinterpreter.py", line
346, in interpret
handlers[opcode](self, args)
File "/usr/lib/python2.4/site-packages/zope/tal/talinterpreter.py", line
536, in do_optTag_tal
self.do_optTag(stuff)
File "/usr/lib/python2.4/site-packages/zope/tal/talinterpreter.py", line
521, in do_optTag
return self.no_tag(start, program)
File "/usr/lib/python2.4/site-packages/zope/tal/talinterpreter.py", line
516, in no_tag
self.interpret(program)
File "/usr/lib/python2.4/site-packages/zope/tal/talinterpreter.py", line
346, in interpret
handlers[opcode](self, args)
File "/usr/lib/python2.4/site-packages/zope/tal/talinterpreter.py", line
949, in do_defineSlot
self.interpret(slot)
File "/usr/lib/python2.4/site-packages/zope/tal/talinterpreter.py", line
346, in interpret
handlers[opcode](self, args)
File "/usr/lib/python2.4/site-packages/zope/tal/talinterpreter.py", line
713, in do_insertTranslation
self.interpret(stuff[1])
File "/usr/lib/python2.4/site-packages/zope/tal/talinterpreter.py", line
346, in interpret
handlers[opcode](self, args)
File "/usr/lib/python2.4/site-packages/zope/tal/talinterpreter.py", line
655, in do_i18nVariable
self.interpret(program)
File "/usr/lib/python2.4/site-packages/zope/tal/talinterpreter.py", line
346, in interpret
handlers[opcode](self, args)
File "/usr/lib/python2.4/site-packages/zope/tal/talinterpreter.py", line
534, in do_optTag_tal
self.no_tag(stuff[-2], stuff[-1])
File "/usr/lib/python2.4/site-packages/zope/tal/talinterpreter.py", line
516, in no_tag
self.interpret(program)
File "/usr/lib/python2.4/site-packages/zope/tal/talinterpreter.py", line
346, in interpret
handlers[opcode](self, args)
File "/usr/lib/python2.4/site-packages/zope/tal/talinterpreter.py", line
623, in do_insertText_tal
text = self.engine.evaluateText(stuff[0])
File "/usr/lib/python2.4/site-packages/zope/tales/tales.py", line 704, in
evaluateText
text = self.evaluate(expr)
File "/usr/lib/python2.4/site-packages/zope/tales/tales.py", line 696, in
evaluate
return expression(self)
Template
"/usr/lib/python2.4/site-packages/schooltool/lyceum/journal/browser/templates/journal.pt",
line 6, column 18
Expression: <PythonExpr ( view.monthTitle(view.active_month))>
File "/usr/lib/python2.4/site-packages/zope/tales/pythonexpr.py", line 59,
in __call__
return eval(self._code, vars)
Extra information: u'( view.monthTitle(view.active_month))'
File "<string>", line 0, in ?
File "/usr/lib/python2.4/site-packages/zope/cachedescriptors/property.py",
line 71, in __get__
value = func(inst)
File
"/usr/lib/python2.4/site-packages/schooltool/lyceum/journal/browser/journal.py",
line 556, in active_month
return available_months[0]
http://mikwig.co.cc:7080/sections/1/journal/
it can be seen here.
The username and password are the default as this is a test site only.
Thankyou for feedback so far.
Hmm, i can't load the page, though traceback seems to be unrelated to
language, i'll look at it today.

My guess is that the timetable is missing (though we should be
handling that case, so showing the traceback to a user is still a
bug).

Ignas
Tom Hoffman
2008-05-20 16:12:48 UTC
Permalink
On Mon, May 19, 2008 at 3:43 AM, Ignas Mikalajunas
Post by Ignas Mikalajunas
I don't think anyone is, you can just go and start translating on
launchpad and reporting all the places you can't translate, because
there are quite a few of these left.
https://translations.launchpad.net/schooltool/
I imagine we need to update the translation strings for the new release?

--Tom

Loading...