*** replaceafill has quit IRC | 00:06 | |
*** replaceafill has joined #schooltool | 00:42 | |
*** klausade has quit IRC | 01:01 | |
*** alga has quit IRC | 02:25 | |
*** replaceafill has quit IRC | 03:28 | |
*** aelkner has quit IRC | 05:58 | |
*** Lumiere has quit IRC | 05:58 | |
*** th1a has quit IRC | 05:58 | |
*** yvl has quit IRC | 05:58 | |
*** aks has joined #schooltool | 06:18 | |
*** Lumiere has joined #schooltool | 06:18 | |
*** aelkner has joined #schooltool | 06:18 | |
*** th1a has joined #schooltool | 06:18 | |
*** yvl has joined #schooltool | 06:19 | |
aelkner | yvl, ayt? | 07:32 |
---|---|---|
*** th1a has quit IRC | 08:27 | |
*** alga has joined #schooltool | 09:30 | |
*** aks has quit IRC | 09:45 | |
*** alga has quit IRC | 09:48 | |
*** aks has joined #schooltool | 10:15 | |
*** aks has joined #schooltool | 10:15 | |
yvl | pong, aelkner | 10:36 |
yvl | sorry, I'm late today | 10:36 |
*** alga has joined #schooltool | 11:51 | |
*** menesis has joined #schooltool | 12:53 | |
*** klausade has joined #schooltool | 13:44 | |
*** aks has quit IRC | 14:20 | |
klausade | anyone here having schooltool in production, that can share with me some good tips? I plan on deploying schooltool at my childrens school. hey have ~200 pupils, and currently they use spreadsheets to administrate their users. I'm wondering first how I should organize the pupils. Should I orderer them into groups called "2011" acording to when the finish school, or into grade like "10th grade"? | 14:31 |
klausade | bbl, feel free to answer in the meantime :-) | 14:32 |
*** menesis has quit IRC | 14:46 | |
*** menesis has joined #schooltool | 15:10 | |
*** th1a has joined #schooltool | 17:15 | |
*** replaceafill has joined #schooltool | 17:45 | |
*** replaceafill has quit IRC | 17:54 | |
*** replaceafill has joined #schooltool | 17:56 | |
aelkner | replaceafill, ayt? | 20:52 |
replaceafill | yes | 20:52 |
replaceafill | aelkner ? | 20:54 |
aelkner | hey, i was wondering who authored the rml_*.txt tests in schooltool.gradebook | 21:00 |
replaceafill | i did | 21:01 |
replaceafill | do they suck? :D | 21:01 |
aelkner | no, i just have to change rml_student.txt now that i'm removing the journal dependency | 21:02 |
replaceafill | ah | 21:02 |
replaceafill | so the gradebook doesnt report on journal data now? | 21:02 |
aelkner | i'm going to have to create a test-only view and stub adapters to simulate the journal being there | 21:02 |
aelkner | i've had to create a soft dependency | 21:03 |
aelkner | whereby an adapter implementation supplies journal data only if journal package is present | 21:03 |
replaceafill | ah | 21:04 |
aelkner | but the tests need to stub that out, assuing no journal package present | 21:04 |
replaceafill | right | 21:04 |
aelkner | you sure did make the files large enough! ;) | 21:05 |
replaceafill | lots of setup crap there | 21:05 |
aelkner | lots of journal data entered, too | 21:05 |
replaceafill | thats what i meant by setup | 21:06 |
aelkner | luckily all in one 50 line block | 21:06 |
replaceafill | you need that in order to test the reports | 21:06 |
aelkner | so that it's not too hard to wrap my mind around it | 21:06 |
replaceafill | yay! | 21:06 |
replaceafill | :p | 21:06 |
aelkner | did you also ad the browser:page directives at the end of ftesting.zcml? | 21:07 |
aelkner | with attribute="template" | 21:07 |
replaceafill | yep | 21:07 |
aelkner | why was that needed? | 21:07 |
replaceafill | to test the actual rml output | 21:07 |
replaceafill | ok, when the app is running you have http://..../bla.pdf, right? | 21:08 |
replaceafill | which spits pdf | 21:08 |
aelkner | right | 21:08 |
replaceafill | i changed all the .pdf ending names to spit rml instead | 21:08 |
replaceafill | so i can test it | 21:08 |
aelkner | with xpath, i see | 21:08 |
replaceafill | so you can use the same functional test approach | 21:08 |
replaceafill | clicks and stuff | 21:09 |
aelkner | but how does that work | 21:09 |
replaceafill | instead of calling __call__ on the class it calls the template attribute | 21:09 |
replaceafill | <browser:page | 21:09 |
replaceafill | name="failures_by_term.pdf" | 21:09 |
replaceafill | for="schooltool.term.interfaces.ITerm" | 21:09 |
replaceafill | class="schooltool.gradebook.browser.pdf_views.FailingReportPDFView" | 21:09 |
replaceafill | permission="schooltool.edit" | 21:09 |
replaceafill | attribute="template" | 21:09 |
aelkner | how does adding those directives change the output? | 21:09 |
replaceafill | /> | 21:09 |
replaceafill | it overrides the actual view | 21:09 |
replaceafill | with the same name | 21:09 |
aelkner | you changed the classes, or is that zope machinery? | 21:10 |
replaceafill | i didnt touch the classes | 21:10 |
replaceafill | this is what you have in configure.zcml | 21:10 |
replaceafill | <page | 21:10 |
replaceafill | name="failures_by_term.pdf" | 21:10 |
replaceafill | for="schooltool.term.interfaces.ITerm" | 21:10 |
replaceafill | class=".pdf_views.FailingReportPDFView" | 21:10 |
replaceafill | permission="schooltool.edit" | 21:10 |
replaceafill | /> | 21:10 |
replaceafill | just one difference | 21:10 |
aelkner | yeah, i saw that | 21:10 |
replaceafill | you have used this trick before... | 21:11 |
aelkner | i have, where? | 21:11 |
replaceafill | i learned it when yvl was explaining it to you :P | 21:11 |
replaceafill | dont remember, but i used when i was working in cando | 21:11 |
aelkner | ok, anyway, it's cool that we now have the model | 21:12 |
aelkner | i had to unit test the views until now | 21:12 |
aelkner | and it's better to functionally test them | 21:12 |
aelkner | i wonder how adding attribute="template" causes it not to call the __call__ method | 21:13 |
replaceafill | if you're really curious about it look at zope.browserpage.metaconfigure.page | 21:16 |
replaceafill | that's the handler for the page directive | 21:16 |
aelkner | i like how you extended the browser class to handle XML queries rather than HTML | 21:18 |
aelkner | something like that should be available by default, like Browser is | 21:19 |
replaceafill | yep | 21:19 |
replaceafill | we dont test xml much though | 21:19 |
replaceafill | but it's useful for rml | 21:19 |
aelkner | perhaps the next project that involves XML queries would be a good time to add that to core | 21:20 |
aelkner | oh, and right, any report testing already could use it | 21:20 |
*** menesis has quit IRC | 21:21 | |
*** menesis has joined #schooltool | 23:28 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!