menesis | Replace ftp.schooltool.org with schooltool.pov.lt in your base.cfg if your build fails with "Connection refused" | 01:16 |
---|---|---|
*** alga has quit IRC | 01:27 | |
*** menesis has quit IRC | 01:50 | |
*** replaceafill has quit IRC | 02:05 | |
*** jelkner has quit IRC | 03:43 | |
th1a | Hm... is there a CanDo package for natty? | 05:29 |
*** th1a has quit IRC | 05:46 | |
*** th1a has joined #schooltool | 05:49 | |
*** aks has joined #schooltool | 06:13 | |
*** aks has joined #schooltool | 06:13 | |
*** alga has joined #schooltool | 10:15 | |
*** menesis has joined #schooltool | 11:05 | |
*** alga has quit IRC | 11:40 | |
*** alga has joined #schooltool | 12:11 | |
*** menesis has quit IRC | 13:07 | |
*** ignas has joined #schooltool | 13:39 | |
*** menesis has joined #schooltool | 13:56 | |
*** aks has quit IRC | 14:21 | |
*** fsufitch has joined #schooltool | 14:40 | |
*** replaceafill has joined #schooltool | 16:58 | |
*** ignas has quit IRC | 17:10 | |
th1a | replaceafill: Do you have a running CanDo? | 17:10 |
replaceafill | yes | 17:11 |
th1a | Would you mind helping me test this script? | 17:11 |
replaceafill | sure, let me get it | 17:12 |
th1a | I know matt is busy. | 17:12 |
th1a | It needs a few more additions to deal with being interrupted, making the reports more organized, etc. | 17:15 |
replaceafill | ImportError: No module named argparse | 17:15 |
th1a | One of your jobs is reminding me which modules aren't in the standard library. ;-) | 17:16 |
replaceafill | that's one | 17:16 |
th1a | Is it in 2.7? | 17:16 |
th1a | Are you running 2.6 or 2.7? | 17:16 |
replaceafill | i'm running 2.6 | 17:16 |
th1a | Anyhow. | 17:16 |
replaceafill | i think cando is not in natty yet | 17:16 |
th1a | Ah. | 17:16 |
th1a | We can do py2exe for this if necessary. | 17:17 |
* th1a goes to let the plumber in. | 17:17 | |
*** alga has quit IRC | 17:19 | |
replaceafill | th1a line 31 has a wrong URL | 17:24 |
replaceafill | .../1/sections/gradeCompetencies/... | 17:24 |
replaceafill | it should be .../sections/1/gradeCompetencies/... | 17:24 |
th1a | Ah. | 17:25 |
replaceafill | *** Fetching reports for quarter-1 term, 2010-2011. *** | 17:25 |
replaceafill | :) | 17:25 |
replaceafill | had to add argparse to setup.py though | 17:25 |
replaceafill | because i'm using bin/python to run it | 17:27 |
replaceafill | in the sandbox | 17:27 |
th1a | argparse could be removed easily enough. | 17:28 |
replaceafill | yep | 17:28 |
replaceafill | an output directory for the pdfs would be nice | 17:28 |
th1a | Yes. | 17:29 |
th1a | I can do that. | 17:29 |
th1a | And have it check to see if the report exists before fetching it again. | 17:29 |
th1a | Does it work? | 17:29 |
replaceafill | some pdfs have no pages, probably they don't have students | 17:29 |
replaceafill | yes! | 17:29 |
th1a | Magical! | 17:30 |
replaceafill | *** Fetching reports for summer-2010 term, 2010-2011. *** | 17:30 |
th1a | Glad I switched to mechanize. | 17:30 |
replaceafill | :) | 17:30 |
th1a | How long does each report take? | 17:30 |
replaceafill | no urllib2 headache | 17:30 |
replaceafill | pretty fast, but we should test it only i think | 17:31 |
th1a | Less than a second per report? | 17:31 |
replaceafill | around 5s | 17:31 |
th1a | ok | 17:31 |
replaceafill | want me to set up a cando instance online? | 17:32 |
th1a | I don't even think it is necessary. | 17:32 |
replaceafill | ok | 17:32 |
replaceafill | it finished | 17:33 |
replaceafill | 74 pdfs for jelkners data | 17:33 |
replaceafill | 40 of them with no pages | 17:33 |
replaceafill | (again, probably no students) | 17:34 |
th1a | That's a bug in CanDo ;-) | 17:34 |
replaceafill | :D | 17:34 |
th1a | I'll make a few changes and ping you in about a half an hour. | 17:35 |
replaceafill | ok | 17:35 |
th1a | replaceafill: Pushed changes. | 18:09 |
replaceafill | pulling... | 18:09 |
th1a | replaceafill: You get to debug for me now. ;-) | 18:09 |
replaceafill | os.mkdir(year_id, 0o777)?? | 18:12 |
replaceafill | should you use output there? | 18:12 |
th1a | oh, yes. | 18:12 |
th1a | And in the next one. | 18:12 |
replaceafill | yep | 18:12 |
th1a | Pair programming! | 18:12 |
replaceafill | we need tests! | 18:12 |
replaceafill | :P | 18:12 |
replaceafill | pdf = br.retrieve(path, pdfPath) fails because of the same reason | 18:15 |
replaceafill | but you only need to fix the mkdir part | 18:15 |
th1a | Pushed fix. | 18:17 |
replaceafill | pulling | 18:17 |
replaceafill | :| | 18:18 |
replaceafill | reports/2010-2011 already exists... | 18:18 |
replaceafill | reports/2010-2011/quarter-1 already exists... | 18:18 |
replaceafill | on first run... | 18:18 |
th1a | oop. | 18:18 |
replaceafill | th1a you need to create output first | 18:19 |
replaceafill | you're trying to create output/year | 18:19 |
th1a | duh. | 18:19 |
th1a | pushed | 18:21 |
replaceafill | pulling | 18:21 |
th1a | Eh... I may be using os.access wrong. | 18:21 |
th1a | ER, no. | 18:22 |
th1a | but let me uncatch the exception. | 18:22 |
th1a | agh. | 18:22 |
th1a | need a % | 18:22 |
th1a | sorry. | 18:22 |
replaceafill | :) | 18:22 |
th1a | :-D | 18:22 |
replaceafill | tests! | 18:23 |
th1a | No... I should have except OSError | 18:23 |
replaceafill | right | 18:23 |
replaceafill | bare excepts are evil | 18:23 |
th1a | I should have copied and pasted the correct version from the script I was looking at... | 18:26 |
th1a | Anyhow, pushed. | 18:26 |
replaceafill | pulling | 18:26 |
replaceafill | hhmm | 18:27 |
th1a | I program by trial and error. | 18:27 |
replaceafill | me too ;) | 18:27 |
replaceafill | i'm waiting for it to fail... | 18:27 |
replaceafill | it didnt! | 18:27 |
th1a | Fail making the directory? | 18:28 |
replaceafill | yes | 18:28 |
replaceafill | well, i'd have to have reports already | 18:28 |
replaceafill | i think it will fail because "except OSError" | 18:28 |
replaceafill | but OSError is not imported | 18:28 |
replaceafill | and i think is in the os module | 18:28 |
replaceafill | not global | 18:28 |
replaceafill | ah no! | 18:28 |
replaceafill | it's builtin | 18:29 |
th1a | Yeah, that's the way I have it in my other script. | 18:29 |
replaceafill | my bad :) | 18:29 |
replaceafill | directories nicely structured :) | 18:31 |
th1a | lol | 18:31 |
replaceafill | finished! | 18:32 |
replaceafill | running again just to check errors | 18:32 |
replaceafill | reports already exists... | 18:32 |
replaceafill | reports/2010-2011 already exists... | 18:32 |
replaceafill | reports/2010-2011/quarter-1 already exists... | 18:32 |
replaceafill | *** Fetching reports for quarter-1 term, 2010-2011. *** | 18:32 |
replaceafill | %s already exists, skipping. | 18:32 |
replaceafill | :/ | 18:32 |
replaceafill | if os.access(pdfPath, os.R_OK): | 18:33 |
replaceafill | print "%s already exists, skipping." | 18:33 |
th1a | pushing... | 18:33 |
replaceafill | it works, i got rid of just quarter-2 and it's retrieving only that :) | 18:34 |
th1a | Thanks for your help, replaceafill. | 18:35 |
replaceafill | np | 18:36 |
replaceafill | remember the argparse issue | 18:36 |
replaceafill | it will depend on how they run it | 18:36 |
replaceafill | if they use system python they can install python-(argparse, mechanize, xlrd) | 18:37 |
replaceafill | i ran this using both, system python and buildout's python | 18:37 |
*** jelkner has joined #schooltool | 18:38 | |
* th1a goes to mow the lawn. | 18:52 | |
*** menesis has quit IRC | 20:16 | |
replaceafill | are ours forms to *add* stuff or to *create*? | 20:31 |
replaceafill | our buttons say "Add" :/ | 20:31 |
replaceafill | "Apply" vs "Save"? | 20:32 |
th1a | That's the kind of thing we need to make consistent. | 20:34 |
* replaceafill noticed while writes instructions for cambodia | 20:35 | |
replaceafill | click 'Add'... | 20:35 |
th1a | You notice a lot of thingw writing instructions. | 20:36 |
*** menesis has joined #schooltool | 20:56 | |
*** aelkner has quit IRC | 21:08 | |
*** aelkner has joined #schooltool | 21:11 | |
aelkner | th1a, ayt? | 21:21 |
aelkner | thanks for the quick response to my email | 21:22 |
aelkner | the menus will be in different places as the duplicate menu decision solved the location issue | 21:22 |
aelkner | i just thought the title would further help the user know what was going on | 21:23 |
aelkner | and you seemed ok with the idea of adding the title, so i'll go with that | 21:23 |
*** alga has joined #schooltool | 21:47 | |
*** fsufitch has quit IRC | 22:20 | |
*** replaceafill has quit IRC | 23:31 | |
*** replaceafill has joined #schooltool | 23:34 | |
*** menesis has quit IRC | 23:49 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!