IRC log of #schooltool for Tuesday, 2010-06-29

*** menesis has quit IRC00:57
*** ColonelPanik has quit IRC06:24
*** krishnagiri has joined #schooltool09:13
*** yvl has joined #schooltool09:14
*** Aiste has joined #schooltool10:17
*** Aiste has quit IRC10:50
krishnagirihi all, is there a way to use my one calender instead of the existing calender in schooltool11:31
*** menesis has joined #schooltool11:46
*** Aiste has joined #schooltool12:00
*** Aiste has quit IRC12:42
*** alga has joined #schooltool13:02
*** Aiste has joined #schooltool14:09
*** krishnagiri has quit IRC14:15
*** mgedmin has joined #schooltool14:24
*** alga has quit IRC14:43
*** Aiste has quit IRC14:44
*** alga has joined #schooltool14:49
*** yvl has quit IRC15:37
*** replaceafill has joined #schooltool19:12
replaceafillmenesis, are you around?19:16
menesisreplaceafill: yes19:45
replaceafillhey menesis, can you take a look at: http://pastebin.com/7rS4g57N19:47
replaceafilli'm getting it in a cando demo instance19:47
replaceafillbut i cannot reproduce it19:47
replaceafillthat's the latest release btw19:48
menesislooks like a bug in reportlab19:51
replaceafill:(19:51
menesisa new version of reportlab19:51
*** davidng has joined #schooltool19:53
davidngAlan, hi19:54
mgedminmenesis, reportlab 2.4 has that bug-in-error-reporting fixed20:05
mgedmina = str(ev.args[-1])+(' fileName=%r'%fileName)20:05
mgedminyou might want to upgrade20:05
replaceafill:O20:05
menesiswe use reportlab 2.4 in lucid20:10
menesismgedmin: what is this bug?20:10
mgedminmenesis, some context here http://pastie.org/102368720:11
replaceafillmenesis, are we using 2.4 in hardy too?20:11
mgedmincompare with the line in replaceafill's traceback20:11
mgedminthis is an exception handling code20:11
*** ColonelPanik has joined #schooltool20:12
menesisreplaceafill: no, on hardy it's 2.120:14
menesisnow it looks to me that z3c.rml.attrib.Image is broken20:14
replaceafillbut i installed hardy in a vm and the report looks fine20:15
menesisit does pass a StringIO object to ImageReader, that expects a filename20:15
mgedminI don't have RL 2.1 on hand, but the 2.4 version I see is supposed to work with file-like objects20:15
mgedminI would guess that RL 2.1 also works with them, if no errors happen during image loading20:16
mgedminwhich is why nobody noticed for this long that the error-handling case is broken20:16
mgedminz3c.rml could provide a workaround20:17
mgedmin(write the data into a temporary file, or subclass StringIO and override __raddr__, yuck)20:17
mgedmins/raddr/radd/20:18
replaceafill:|20:18
mgedminreplaceafill, if I were you, I'd patch in a temporary workaround reportlab just to see what the original exception was20:20
mgedmini.e. change reportlab/lib/utils.py line 561 to20:20
mgedmin    a = str(ev.args[-1])+(' fileName='+repr(fileName))20:20
replaceafillmgedmin, i have no control on the server which is throwing the exception :(20:21
replaceafillthat's why i'm confused20:21
replaceafillsince i cannot reproduce it20:21
mgedminah, then it's more difficult20:21
mgedminwhere do the images come from?20:21
replaceafilli guess it's zonki20:21
replaceafillit's the only image in the default rml template20:21
mgedminis python-imaging installed?20:21
replaceafillin the footer20:21
replaceafillhhmm... good question20:22
replaceafillmgedmin, i guess so:20:22
replaceafill# /usr/lib/python2.5/site-packages/PIL20:22
replaceafillthat's from schooltool's control view20:23
mgedminhm20:23
menesisok RL 2.4 should handle StringIO objects that z3c.rml passes to it...20:24
menesisanyway the failing call in the traceback is in the error handling code, but the error should not happen at all20:26
mgedminyes20:26
mgedminbut we don't know what that error is20:26
mgedminfilesystem corruption of zonky.jpg?20:26
mgedminunlikely...20:27
replaceafillwhat do you guys recommend me to ask their sysadmin for?20:27
replaceafillversions of stuff?20:27
replaceafillpaths?20:27
replaceafillaccess to their server!? :D20:27
*** mgedmin has quit IRC20:35
*** davidng has left #schooltool20:39
menesisreplaceafill: what report is it?20:39
menesisand the server is running hardy?20:40
replaceafillit happens on all pdf reports20:40
replaceafillyes20:40
replaceafillwell, at least that's what the user told me :/20:40
menesisso the only image is schooltool/skin/resources/schooltool-report-logo.png20:55
replaceafillyes20:56
menesisso, ask to check if the image exists and is a good image20:56
replaceafillcool, will do20:56
menesishttp://localhost:7080/++resource++schooltool-report-logo.png20:57
replaceafillmenesis, it is20:57
replaceafillhttp://cando.cteresource.org/demo/++resource++schooltool-report-logo.png20:57
replaceafillcan you see it?20:57
menesisyes20:58
menesisthen, have to try21:03
menesispython21:03
menesis>>> import PIL.Image21:03
menesis>>> PIL.Image.open('/usr/share/pyshared/schooltool/skin/resources/schooltool-report-logo.png')21:03
menesisthis call fails21:03
*** povbot has joined #schooltool22:21
*** menesis has quit IRC22:50
*** povbot has joined #schooltool23:07
*** menesis has joined #schooltool23:11
*** replaceafill has quit IRC23:25

Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!