| *** menesis has quit IRC | 00:57 | |
| *** ColonelPanik has quit IRC | 06:24 | |
| *** krishnagiri has joined #schooltool | 09:13 | |
| *** yvl has joined #schooltool | 09:14 | |
| *** Aiste has joined #schooltool | 10:17 | |
| *** Aiste has quit IRC | 10:50 | |
| krishnagiri | hi all, is there a way to use my one calender instead of the existing calender in schooltool | 11:31 |
|---|---|---|
| *** menesis has joined #schooltool | 11:46 | |
| *** Aiste has joined #schooltool | 12:00 | |
| *** Aiste has quit IRC | 12:42 | |
| *** alga has joined #schooltool | 13:02 | |
| *** Aiste has joined #schooltool | 14:09 | |
| *** krishnagiri has quit IRC | 14:15 | |
| *** mgedmin has joined #schooltool | 14:24 | |
| *** alga has quit IRC | 14:43 | |
| *** Aiste has quit IRC | 14:44 | |
| *** alga has joined #schooltool | 14:49 | |
| *** yvl has quit IRC | 15:37 | |
| *** replaceafill has joined #schooltool | 19:12 | |
| replaceafill | menesis, are you around? | 19:16 |
| menesis | replaceafill: yes | 19:45 |
| replaceafill | hey menesis, can you take a look at: http://pastebin.com/7rS4g57N | 19:47 |
| replaceafill | i'm getting it in a cando demo instance | 19:47 |
| replaceafill | but i cannot reproduce it | 19:47 |
| replaceafill | that's the latest release btw | 19:48 |
| menesis | looks like a bug in reportlab | 19:51 |
| replaceafill | :( | 19:51 |
| menesis | a new version of reportlab | 19:51 |
| *** davidng has joined #schooltool | 19:53 | |
| davidng | Alan, hi | 19:54 |
| mgedmin | menesis, reportlab 2.4 has that bug-in-error-reporting fixed | 20:05 |
| mgedmin | a = str(ev.args[-1])+(' fileName=%r'%fileName) | 20:05 |
| mgedmin | you might want to upgrade | 20:05 |
| replaceafill | :O | 20:05 |
| menesis | we use reportlab 2.4 in lucid | 20:10 |
| menesis | mgedmin: what is this bug? | 20:10 |
| mgedmin | menesis, some context here http://pastie.org/1023687 | 20:11 |
| replaceafill | menesis, are we using 2.4 in hardy too? | 20:11 |
| mgedmin | compare with the line in replaceafill's traceback | 20:11 |
| mgedmin | this is an exception handling code | 20:11 |
| *** ColonelPanik has joined #schooltool | 20:12 | |
| menesis | replaceafill: no, on hardy it's 2.1 | 20:14 |
| menesis | now it looks to me that z3c.rml.attrib.Image is broken | 20:14 |
| replaceafill | but i installed hardy in a vm and the report looks fine | 20:15 |
| menesis | it does pass a StringIO object to ImageReader, that expects a filename | 20:15 |
| mgedmin | I don't have RL 2.1 on hand, but the 2.4 version I see is supposed to work with file-like objects | 20:15 |
| mgedmin | I would guess that RL 2.1 also works with them, if no errors happen during image loading | 20:16 |
| mgedmin | which is why nobody noticed for this long that the error-handling case is broken | 20:16 |
| mgedmin | z3c.rml could provide a workaround | 20:17 |
| mgedmin | (write the data into a temporary file, or subclass StringIO and override __raddr__, yuck) | 20:17 |
| mgedmin | s/raddr/radd/ | 20:18 |
| replaceafill | :| | 20:18 |
| mgedmin | replaceafill, if I were you, I'd patch in a temporary workaround reportlab just to see what the original exception was | 20:20 |
| mgedmin | i.e. change reportlab/lib/utils.py line 561 to | 20:20 |
| mgedmin | a = str(ev.args[-1])+(' fileName='+repr(fileName)) | 20:20 |
| replaceafill | mgedmin, i have no control on the server which is throwing the exception :( | 20:21 |
| replaceafill | that's why i'm confused | 20:21 |
| replaceafill | since i cannot reproduce it | 20:21 |
| mgedmin | ah, then it's more difficult | 20:21 |
| mgedmin | where do the images come from? | 20:21 |
| replaceafill | i guess it's zonki | 20:21 |
| replaceafill | it's the only image in the default rml template | 20:21 |
| mgedmin | is python-imaging installed? | 20:21 |
| replaceafill | in the footer | 20:21 |
| replaceafill | hhmm... good question | 20:22 |
| replaceafill | mgedmin, i guess so: | 20:22 |
| replaceafill | # /usr/lib/python2.5/site-packages/PIL | 20:22 |
| replaceafill | that's from schooltool's control view | 20:23 |
| mgedmin | hm | 20:23 |
| menesis | ok RL 2.4 should handle StringIO objects that z3c.rml passes to it... | 20:24 |
| menesis | anyway the failing call in the traceback is in the error handling code, but the error should not happen at all | 20:26 |
| mgedmin | yes | 20:26 |
| mgedmin | but we don't know what that error is | 20:26 |
| mgedmin | filesystem corruption of zonky.jpg? | 20:26 |
| mgedmin | unlikely... | 20:27 |
| replaceafill | what do you guys recommend me to ask their sysadmin for? | 20:27 |
| replaceafill | versions of stuff? | 20:27 |
| replaceafill | paths? | 20:27 |
| replaceafill | access to their server!? :D | 20:27 |
| *** mgedmin has quit IRC | 20:35 | |
| *** davidng has left #schooltool | 20:39 | |
| menesis | replaceafill: what report is it? | 20:39 |
| menesis | and the server is running hardy? | 20:40 |
| replaceafill | it happens on all pdf reports | 20:40 |
| replaceafill | yes | 20:40 |
| replaceafill | well, at least that's what the user told me :/ | 20:40 |
| menesis | so the only image is schooltool/skin/resources/schooltool-report-logo.png | 20:55 |
| replaceafill | yes | 20:56 |
| menesis | so, ask to check if the image exists and is a good image | 20:56 |
| replaceafill | cool, will do | 20:56 |
| menesis | http://localhost:7080/++resource++schooltool-report-logo.png | 20:57 |
| replaceafill | menesis, it is | 20:57 |
| replaceafill | http://cando.cteresource.org/demo/++resource++schooltool-report-logo.png | 20:57 |
| replaceafill | can you see it? | 20:57 |
| menesis | yes | 20:58 |
| menesis | then, have to try | 21:03 |
| menesis | python | 21:03 |
| menesis | >>> import PIL.Image | 21:03 |
| menesis | >>> PIL.Image.open('/usr/share/pyshared/schooltool/skin/resources/schooltool-report-logo.png') | 21:03 |
| menesis | this call fails | 21:03 |
| *** povbot has joined #schooltool | 22:21 | |
| *** menesis has quit IRC | 22:50 | |
| *** povbot has joined #schooltool | 23:07 | |
| *** menesis has joined #schooltool | 23:11 | |
| *** replaceafill has quit IRC | 23:25 | |
Generated by irclog2html.py 4.0.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!