IRC log of #schooltool for Thursday, 2011-03-31

fsufitchreplaceafill, buildout ran :)00:00
fsufitchand now my code breaks it00:00
fsufitchgreat!00:00
replaceafill:D00:00
fsufitchso everything is good00:00
replaceafillgreat00:00
replaceafillthat's why i love web2py...00:00
replaceafill... i mean buildout00:00
replaceafill;)00:00
fsufitchhehehe :)00:01
aelknerreplaceafill, so are you still having the PIL problem?00:02
replaceafillaelkner sorry, i'm not running make00:03
aelknerdo you think it is a temporary server down issue?00:04
fsufitchwoo!00:05
replaceafilli guess it's this whole workaround thing00:05
fsufitchaelkner, zcml restructuring complete :)00:05
aelknerbin/test passes?00:07
fsufitchaelkner, sec while i run it00:07
aelknerreplaceafill, so am i grounded until menesis gets back?00:09
replaceafillaelkner you could do the same hack fsufitch did, adding [versions] to your buildout.cfg00:10
aelkneralready did it00:10
aelknerthe problem is with PIL though00:10
aelknerand fsufitch ddn't say he had that problem00:10
aelkneri'm going to try make realclean00:11
aelknersince i haven't done that since changing buildout.cfg00:11
fsufitchaelkner, tests pass00:13
aelknerok, so commit and push00:14
aelknerreplaceafill, still getting the PIL error00:17
aelkneri guess i'll just wait to see if a server somes up00:17
aelknercomes00:17
fsufitchaelkner, push'd00:17
aelknerif that's not it, i can add to the bug that mensis just updated00:18
replaceafillyou probably should00:18
aelknerfsufitch, ok, looks good00:21
aelknerhow is the schoolyear view?00:21
fsufitchrudimentary :)00:22
fsufitchi should update ftests to reflect what it should look like as opposed to the current test00:25
aelkneryou could take this moment to create ftests directory and move ftests.py, README.txt there00:27
aelknerftesting.zcml should stay where it is00:28
aelkneryou can use intervention package as a guide00:28
fsufitchkay00:28
fsufitchaelkner, any particular reason the existing test uses XPaths, and should i keep doing it that way?00:36
fsufitchbecause iirc zope.testrunner has some better ways to do ftests00:37
aelknerah yes, glad you asked00:37
aelknerwe definitely all agree that xpath tests are better because they are more explicit00:37
aelkner>>> print manager.contents00:38
aelknerblah blah00:38
aelkner...00:38
aelknerblah blah00:38
aelkneris too easy to get false positives00:38
*** replaceafill has quit IRC00:38
fsufitchwell yes but this way i have to include stuff like CSS classes for elements00:38
fsufitchwhich is a bit silly00:38
aelknerwell, sometimes it's important to include the tags, and you can use ... for things like class=00:39
aelknerbut also, you can put /text() at the end of an xpath expression00:40
aelknerand that will give you the stuff INSIDE the tag which is explicit enough00:40
fsufitchhm ok00:40
*** replaceafill has joined #schooltool00:40
aelknerbecause by virtue of the xpath expression you use to get to the tezt(), you havce proven something00:40
aelknertry doing that right now in README.txt00:40
aelkneryou can get rid of the <div> and </div> that way00:41
fsufitchhmm, actually im trying to select some <a>'s now00:47
aelkner?00:48
aelknerdid you change the //div test to add /text()00:49
fsufitchyeah im using text now00:49
fsufitchwoo, works!00:52
fsufitchnow to make ftests dir00:52
fsufitchaelkner, there actually already exists a "tests" dir00:53
aelknerwell, tests dir is for unit tests which we don't d a lot in browser packages00:53
aelknerbut you can keep it there00:53
fsufitchok00:53
fsufitchjust checking that it didnt have the same purpose00:53
aelknerftests dir is for functional tests00:53
aelknerit's a place holder00:54
aelknerschooltool.gradebook actually has unit tests for reports00:54
aelknerbut that was because we hadn't figured out a way to functionally test them00:54
fsufitchaelkner, so what's the purpose of ftesting.py?01:02
fsufitchi don't see the same thing in intervention01:03
fsufitchoh it's in ftests/ftests.py01:04
fsufitchwait no, the existing ftests.py just duplicated ftesting.py01:04
aelknerftesting.py is unnecessary, you can remove it01:05
fsufitchaelkner, bam, done01:22
fsufitchand pushed01:25
aelknerok, cool, some housekeeping that also gets you more familiar witht the code01:29
aelkneryou could add small stuff to the existing view01:29
aelknerlike pretend that you have courseinfo objects to list01:30
aelknereven though you don't already01:30
aelkneryou can add a ul/li/a list of lnks to the existing courseinfo objects01:32
aelknera change to the template, a new methodin the view class, a new test01:32
aelknerfor now return a fake list of one01:33
fsufitchok01:38
aelknernext week we can talk about the data model some more and lay out a plan for what objects/views you should write01:39
fsufitchokay01:44
fsufitch:)01:44
aelknerbtw, one small thing01:52
aelkneryou should replace the menuitem directive in browser/configure.zcml01:53
aelknerwith the more proper viewlet manager version01:53
aelknerfsufitch, see "Action menu buttons" section01:54
aelknerof instervetnion /browser/configure.zcml01:54
fsufitchalright01:55
fsufitchthnks01:55
fsufitch*thanks01:55
aelknernp01:55
*** alga has quit IRC02:13
*** replaceafill has quit IRC02:37
fsufitchaelkner, ive lost my focus, ugh02:49
fsufitchreally tired02:49
fsufitchive got the view thing started though02:49
fsufitchthanks for the help :)03:02
aelknerno, see you next week03:08
aelknernp, i meant03:08
*** fsufitch has quit IRC03:16
*** aks has joined #schooltool06:06
*** aks has joined #schooltool06:06
*** menesis has joined #schooltool08:16
*** yvl has quit IRC08:37
*** yvl has joined #schooltool08:40
*** aks has quit IRC09:45
*** aks has joined #schooltool10:12
*** yvl_ has joined #schooltool10:54
*** yvl_ has quit IRC10:54
*** alga has joined #schooltool10:57
*** alga has quit IRC11:18
*** alga has joined #schooltool12:00
*** alga has quit IRC13:43
*** menesis has quit IRC14:04
*** aks has quit IRC14:20
*** menesis has joined #schooltool15:11
*** alga has joined #schooltool15:38
aelkneryvl, ayt?16:51
yvlyes, aelkner16:52
th1aaelkner:  What's your itinerary today?16:52
aelkneri'm going to call in a sec16:53
aelkneryvl, did you have a chance to look over my merge requests?16:53
yvlsorry, not yet16:53
aelknerok, never mind16:53
*** aelkner has quit IRC16:58
*** replaceafill has joined #schooltool17:34
*** replaceafill has quit IRC18:08
*** alga has quit IRC19:39
*** menesis has quit IRC20:31
*** menesis has joined #schooltool21:49
*** replaceafill has joined #schooltool21:52
*** aelkner has joined #schooltool22:59
th1ahttps://code.launchpad.net/~schooltool-developers/schooltool/st-mindmaps22:59
th1abzr branch lp:~schooltool-developers/schooltool/st-mindmaps23:00
*** th1a has quit IRC23:02
*** replaceafill has quit IRC23:32
*** aelkner has quit IRC23:52

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