IRC log of #schooltool for Tuesday, 2013-06-25

*** replaceafill has quit IRC01:10
*** bigbrovar has quit IRC01:12
*** bigbrovar has joined #schooltool01:59
*** bigbrovar has quit IRC04:48
*** yvl has joined #schooltool08:16
*** yvl has quit IRC09:50
*** yvl has joined #schooltool12:51
*** menesis has joined #schooltool12:51
*** menesis has quit IRC13:59
*** menesis has joined #schooltool14:03
*** replaceafill has joined #schooltool16:04
*** th1a has joined #schooltool16:30
th1a give me a minute, guys...16:31
replaceafillkk16:31
th1aOK.  hi replaceafill, yvl, menesis.16:33
yvlgood morning :)16:33
replaceafillgood morning/afternoon16:33
th1aI underestimated the complexity of that wedding by a couple orders of magnitude, but it was a big success and everything is returning to normal now.16:33
menesishi16:34
th1aWould you like to start, replaceafill?16:35
replaceafillplease :)16:35
replaceafillok16:35
replaceafilllast week i fixed a few cando bugs16:35
replaceafilli think we're ready for the flourish bug release16:36
replaceafillwhile working on that + the gradebook report card16:36
replaceafilli discovered a permission issue in the celery branches16:36
replaceafillit's really weird16:36
replaceafilli hope yvl can help on it :)16:36
replaceafillhttp://dev.schooltool.org/trunk16:37
replaceafillmanager:schooltool16:37
replaceafillgo to Home16:37
replaceafilland you'll see the three issue i've found16:37
th1aThere is bound to be some weirdness after a complete re-map of admin roles.16:37
replaceafillth1a, correct16:38
replaceafilli think it may be related to that16:38
replaceafillyou guys in Home? :)16:38
replaceafillsee the Messages16:38
replaceafillthe one at 13:1716:38
replaceafillit's a pdf with the student skills report16:39
replaceafillwhich works for the teacher of the section16:39
replaceafillbut produces an empty pdf for the manager16:39
replaceafillbtw, i tried putting the manager in all the groups (clerks, etc)16:39
replaceafilland the same happens16:39
th1aAh.16:40
replaceafillthe second issue is related to permissions (the 13:29 message)16:40
replaceafillrelated also *16:40
replaceafillif you go to http://dev.schooltool.org/trunk/schooltool.tasks/6319a6fa-46b9-48e2-b3f4-f97a16be55fd16:40
replaceafillthe message is kind of misleading16:41
replaceafillit's complaining about the batch being None for a table16:41
replaceafill(which is true)16:41
replaceafillone thing that got my attention is that if you go to the student skills report, as manager, directly in the url, the report works fine16:42
replaceafilldev.schooltool.org/trunk/schoolyears/2012-2013/SY/sections/13106-15-6-4/skills/6617-2012-0/gradebook/903408/student_competency_report.pdf16:42
replaceafillhttp://dev.schooltool.org/trunk/schoolyears/2012-2013/SY/sections/13106-15-6-4/skills/6617-2012-0/gradebook/903408/student_competency_report.pdf16:43
replaceafillsorry, missed the http in the first one :)16:43
replaceafillso, it's something about the tasks, right?16:43
replaceafilli tracked it down all the way to the viewlet manager16:43
yvlhmz16:44
yvlcan the manager see the student's report?16:44
yvlthe skill report16:44
yvlin some old system16:45
replaceafillyvl, yes16:45
replaceafillsee the pdf link above, that works even if you're a manager16:45
replaceafilland the manager can navigate through until there16:45
yvlumm16:45
replaceafillthis is the part i was referring to:16:45
replaceafillhttp://bazaar.launchpad.net/~schooltool-owners/schooltool/trunk/view/head:/src/schooltool/skin/flourish/viewlet.py#L16416:45
yvlI was asking, if a manager can generate that student's report in older ST16:46
replaceafillyvl, yes16:46
replaceafillit works that way in the flourish branch16:46
replaceafillso i discovered that the canAccess call strips the skills_table viewlet out16:47
replaceafill(the one that renders the table in the report)16:47
yvlmakes sense16:47
replaceafillno table, produces an empty <story></story> tag16:47
yvlyes16:47
replaceafillwhich results in empty pdf16:47
yvlyes16:47
replaceafillsame happens for batch16:48
yvlyes16:48
replaceafillin the xls zip export16:48
replaceafillif i change the permissions of the tables and batch (in core) to zope.Public16:48
replaceafilleverything works as expected16:48
yvlyes16:48
replaceafilli checked the other remotetasks16:49
replaceafill(in the gradebook)16:49
yvlwhat exactly the manager has no permissions to access?16:49
replaceafillyvl, can you rephrase that?16:49
replaceafilldon't quite get it :(16:49
yvlcanAccess fails, table gets stripped16:49
replaceafillyes16:50
yvlwhy does canAccess fail?16:50
yvlor rather, what makes canAccess not fail for teachers :)16:50
replaceafilli didn't get that deep :(16:50
replaceafilli just noticed the return False being called16:50
yvlkk16:50
yvlbut that's your lead IMHO16:51
yvlin any case, sorry for interrupting16:51
replaceafillso i should pdb (which in celery means insert prints) in zope.security.canAccess16:51
replaceafillis there a better way to debug celery stuff?16:51
replaceafilli've been inserting prints :P16:52
replaceafilland checking the logs16:52
replaceafillif i insert a pdb, i get a pdb quit error (or something like that)16:52
yvlyes16:52
yvlfor security...16:52
replaceafillright16:52
yvlwe do have a log somewhere16:52
yvltrying to remember where16:52
replaceafilllog/celery_report.log?16:52
yvlno, not actual log16:54
yvlbut we do display security checking trail when dev mode is on16:54
replaceafillah16:55
replaceafillok, i'll activate dev mode on16:55
replaceafilli've been checking against Server -> Errors16:56
replaceafilllooking for unauthorized or something16:56
replaceafillbut didn't get anything16:56
replaceafillah16:56
yvlah, DebugSecurityPolicy16:56
yvlok, so we don't have a tool off hand16:58
yvlone to print full security trail in remote tasks16:58
replaceafillah ok16:58
yvl(but there is code to do this :) )16:58
replaceafill:)16:58
replaceafillah, the third issue16:58
replaceafillit's related to download paths16:59
replaceafillif the section title has a "/" in it16:59
replaceafillgo to Home -> Messages16:59
replaceafilland see the 13:30 one16:59
replaceafillthe xls export16:59
replaceafillyou'll see the link failing because of the /16:59
replaceafillthis happens in the gradebook too16:59
replaceafilldidn't check what's happening but maybe a filename has to be cleaned17:00
yvlyes, there's some sanitization missing17:00
replaceafilli'll take a look at that too17:00
* replaceafill checks his notes17:00
replaceafillah th1a17:00
replaceafilli added the apache translation :)17:01
replaceafillhttp://bazaar.launchpad.net/~schooltool-owners/schooltool-book/es/revision/21717:01
replaceafillcreated a /es branch for the book17:01
replaceafillin the schooltoo-book project17:01
replaceafillmenesis, i tried to upload it17:01
replaceafilland couldn't17:01
yvlreplaceafill, btw: http://docs.celeryproject.org/en/latest/tutorials/debugging.html17:01
yvldid not try yet17:01
replaceafilli think it's because the files in the /es directory (in the server) have no 'w' permission for the group17:01
replaceafilland then i know i have sudo in the server, but don't know my password :D17:02
replaceafillmenesis, could you please set me a temporary password?17:02
menesis:)17:02
replaceafilli mean, a known password :D17:02
menesisof course17:03
replaceafillyvl, ah thanks, i'll try that17:03
replaceafillok, that's it from me17:03
yvlif you need to debug, you can also do prints in securitypolicy/policy.py   checkByAdaptation17:04
replaceafill:|17:05
replaceafill"you can telnet into to remotely debug"17:05
replaceafillthat sounds nice :D17:05
yvl;)))17:06
th1areplaceafill: So what's in your current queue now?17:07
replaceafillfix this (permissions, path) and continue with the report card (attendance part)17:08
th1aOK.17:08
th1aThanks replaceafill.17:08
th1ayvl?17:10
replaceafillmenesis, thanks! http://book.schooltool.org/es/apache.html17:10
yvlI'm still working on customizable attendance17:10
yvladding custom attendance scoresystem to global scoresystems is  done17:10
yvlstill need to  block those from appearing in deployable report sheets17:11
yvland need to add dropdown to select default ss for attendance17:11
yvlI guess I can add a dropdown for journal grading too if you want17:12
th1aI guess it is the same problem.17:12
yvlright17:12
th1aSounds like a good idea.17:12
yvlbtw17:13
yvlcreating new attendance ss, you have (for each score):17:13
yvl- value17:13
yvl- description17:13
yvl- dropdown of absent/tardy/present17:14
yvl- checkbox "explained"17:14
yvlso you can do17:14
yvla17:14
yvlAbsent17:14
yvl[meaning] absent17:14
yvl[ ] explained17:14
yvlI guess absent and tardy and present are mutually exclusive17:15
th1aYes.17:15
th1aI'm not sure what you mean by that dropdown.17:16
yvlwell, you have to select what that score means in reports17:16
yvlsay, you add:17:16
yvlae17:16
yvlAbsent (explained)17:16
yvl[meaning] absent17:16
yvl[v] explained17:16
yvlso in reports, "ae" will be treaded as absent17:17
yvlalso, as explained17:17
yvl(looking for example)17:17
yvlthere17:18
th1aOK, so you might have a bunch of codes explaining different types of absences, but the premise is that all attendance scores ultimately devolve to ways of being absent or tardy.17:18
yvlMark has different letters for absence: "A,S,L,E,M,F,B,H for the reason"17:18
yvlyes17:18
th1aYes, I think that works, I just hadn't thought of it in that way.17:18
yvland you can still export them as XLS and do whatever17:18
th1aOK, good.17:18
yvlalso you can add score X17:19
yvland mark first and last days present17:19
yvlso it should work I think17:19
th1aThe default reports should include the codes where it is applicable.17:19
yvltrue17:19
th1aWe should assume people are going to use that or at worst can deal with a redundant column in the report.17:19
yvlright17:20
th1aIt is not an edge case.17:20
yvlright17:20
yvlwell, that's it from me today17:21
th1aOK, sounds good, yvl.17:22
th1amenesis?17:22
menesisI was busy with a another quick project. Also had two days off17:23
menesisSo I haven't made any releases17:23
menesisI have to make bugfix releases with replaceafill's fix for virginia today?17:23
th1aIs that a question about urgency?17:24
menesisyes17:24
th1aI don't think it is urgent.17:24
th1aTomorrow would be fine.17:24
menesisthere are three releases to make, but they have one or two bugfixes each17:25
menesisincluding gradebook comment editor fix17:25
menesis...17:27
menesishas anyone tested the trunk ppa?17:27
th1aI can do that.17:27
menesisand the cando people?17:28
th1aI was trying to remember if you'd released their celery version.17:29
th1adwelsh will be back at work to some degree soon.17:29
menesisgood to hear17:30
menesisyes, trunk ppa contains celery version of everything17:30
menesisincluding a move of some big report from virginia to cando17:31
th1aOK, I'll let them know about that.17:32
menesisI did not have time to make a proper release, but it will be very similar17:33
menesisone more thing, I have updated https://launchpad.net/schooltool.release/trunk17:33
menesisthe Makefile17:34
menesisto control supervisor17:34
menesisand added instructions to that page17:34
menesisthis is the simplest way to test the full suite17:35
menesisno need to edit buildout.cfg and add ../schooltool17:35
menesisand that's it17:35
* menesis done17:35
th1aOK, thanks menesis.17:35
th1aThanks guys.  Everything seems to be moving along, we just need to try to avoid having the end of these projects start do drag out...17:37
th1aThe end can be the tricky part.17:37
th1aShould we meet Thursday?17:37
th1aI could also do friday but it is kind of pointless.17:37
replaceafill+1 on thursday17:38
yvllet's do Thu17:38
th1aOK, Thursday it is, regular time.17:38
th1aThanks guys!17:38
* th1a drops the bag of gravel.17:38
replaceafillthanks everybody, see you thursday17:38
yvlsee you soon :)17:38
*** yvl_ has joined #schooltool17:43
*** yvl has quit IRC17:49
*** th1a has quit IRC18:10
*** menesis has quit IRC18:30
*** replaceafill has quit IRC18:36
*** menesis has joined #schooltool18:51
*** th1a has joined #schooltool18:52
*** ignas has joined #schooltool19:29
*** menesis has quit IRC20:02
*** th1a has quit IRC20:19
*** th1a has joined #schooltool20:25
*** th1a has quit IRC20:45
*** th1a has joined #schooltool21:05
*** th1a has quit IRC21:14
*** th1a has joined #schooltool21:16
*** th1a has quit IRC21:31
*** ignas has quit IRC22:23
*** ignas has joined #schooltool22:52
*** replaceafill has joined #schooltool22:53

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