IRC log of #schooltool for Tuesday, 2011-03-29

*** replaceafill has quit IRC00:06
*** replaceafill has joined #schooltool00:42
*** klausade has quit IRC01:01
*** alga has quit IRC02:25
*** replaceafill has quit IRC03:28
*** aelkner has quit IRC05:58
*** Lumiere has quit IRC05:58
*** th1a has quit IRC05:58
*** yvl has quit IRC05:58
*** aks has joined #schooltool06:18
*** Lumiere has joined #schooltool06:18
*** aelkner has joined #schooltool06:18
*** th1a has joined #schooltool06:18
*** yvl has joined #schooltool06:19
aelkneryvl, ayt?07:32
*** th1a has quit IRC08:27
*** alga has joined #schooltool09:30
*** aks has quit IRC09:45
*** alga has quit IRC09:48
*** aks has joined #schooltool10:15
*** aks has joined #schooltool10:15
yvlpong, aelkner10:36
yvlsorry, I'm late today10:36
*** alga has joined #schooltool11:51
*** menesis has joined #schooltool12:53
*** klausade has joined #schooltool13:44
*** aks has quit IRC14:20
klausadeanyone 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
klausadebbl, feel free to answer in the meantime :-)14:32
*** menesis has quit IRC14:46
*** menesis has joined #schooltool15:10
*** th1a has joined #schooltool17:15
*** replaceafill has joined #schooltool17:45
*** replaceafill has quit IRC17:54
*** replaceafill has joined #schooltool17:56
aelknerreplaceafill, ayt?20:52
replaceafillyes20:52
replaceafillaelkner ?20:54
aelknerhey, i was wondering who authored the rml_*.txt tests in schooltool.gradebook21:00
replaceafilli did21:01
replaceafilldo they suck? :D21:01
aelknerno, i just have to change rml_student.txt now that i'm removing the journal dependency21:02
replaceafillah21:02
replaceafillso the gradebook doesnt report on journal data now?21:02
aelkneri'm going to have to create a test-only view and stub adapters to simulate the journal being there21:02
aelkneri've had to create a soft dependency21:03
aelknerwhereby an adapter implementation supplies journal data only if journal package is present21:03
replaceafillah21:04
aelknerbut the tests need to stub that out, assuing no journal package present21:04
replaceafillright21:04
aelkneryou sure did make the files large enough! ;)21:05
replaceafilllots of setup crap there21:05
aelknerlots of journal data entered, too21:05
replaceafillthats what i meant by setup21:06
aelknerluckily all in one 50 line block21:06
replaceafillyou need that in order to test the reports21:06
aelknerso that it's not too hard to wrap my mind around it21:06
replaceafillyay!21:06
replaceafill:p21:06
aelknerdid you also ad the browser:page directives at the end of ftesting.zcml?21:07
aelknerwith attribute="template"21:07
replaceafillyep21:07
aelknerwhy was that needed?21:07
replaceafillto test the actual rml output21:07
replaceafillok, when the app is running you have http://..../bla.pdf, right?21:08
replaceafillwhich spits pdf21:08
aelknerright21:08
replaceafilli changed all the .pdf ending names to spit rml instead21:08
replaceafillso i can test it21:08
aelknerwith xpath, i see21:08
replaceafillso you can use the same functional test approach21:08
replaceafillclicks and stuff21:09
aelknerbut how does that work21:09
replaceafillinstead of calling __call__ on the class it calls the template attribute21:09
replaceafill  <browser:page21: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
aelknerhow does adding those directives change the output?21:09
replaceafill      />21:09
replaceafillit overrides the actual view21:09
replaceafillwith the same name21:09
aelkneryou changed the classes, or is that zope machinery?21:10
replaceafilli didnt touch the classes21:10
replaceafillthis is what you have in configure.zcml21:10
replaceafill  <page21: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
replaceafilljust one difference21:10
aelkneryeah, i saw that21:10
replaceafillyou have used this trick before...21:11
aelkneri have, where?21:11
replaceafilli learned it when yvl was explaining it to you :P21:11
replaceafilldont remember, but i used when i was working in cando21:11
aelknerok, anyway, it's cool that we now have the model21:12
aelkneri had to unit test the views until now21:12
aelknerand it's better to functionally test them21:12
aelkneri wonder how adding attribute="template" causes it not to call the __call__ method21:13
replaceafillif you're really curious about it look at zope.browserpage.metaconfigure.page21:16
replaceafillthat's the handler for the page directive21:16
aelkneri like how you extended the browser class to handle XML queries rather than HTML21:18
aelknersomething like that should be available by default, like Browser is21:19
replaceafillyep21:19
replaceafillwe dont test xml much though21:19
replaceafillbut it's useful for rml21:19
aelknerperhaps the next project that involves XML queries would be a good time to add that to core21:20
aelkneroh, and right, any report testing already could use it21:20
*** menesis has quit IRC21:21
*** menesis has joined #schooltool23:28

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