Makorihi | after removing the schooltool | 00:00 |
---|---|---|
Makorihi | from the slug | 00:00 |
Makorihi | we were given | 00:00 |
Makorihi | ConfigurationError: ('Invalid value for', 'package', "ImportError: Couldn't import scheduling, No module named scheduling") | 00:00 |
pcardune | Makorihi: where is your scheduling code located? | 00:00 |
Makorihi | cando/SchoolTool/src/schooltool/scheduling | 00:00 |
pcardune | it should be in cando/SchoolTool/src/ | 00:01 |
*** wdickers has quit IRC | 00:01 | |
Makorihi | wow . . . | 00:01 |
smalekgh | I think... uhh... that... my brain... has melted... | 00:01 |
*** alga has quit IRC | 00:02 | |
*** mlinnell has quit IRC | 00:03 | |
fsufitch | pcardune, so what is this barcode stuff about? | 00:03 |
pcardune | well, i'm sure bvuong and brittney can tell you about it | 00:04 |
pcardune | the synopsis is this though: | 00:04 |
pcardune | students have id cards | 00:04 |
pcardune | which have barcodes on them | 00:04 |
pcardune | and resources like cameras and laptops and projects also have barcodes | 00:04 |
pcardune | we need schooltool to generate barcodes for these items | 00:04 |
fsufitch | i see | 00:04 |
pcardune | so bvuong already wrote barcode generation code | 00:05 |
smalekgh | Ewww, you're objectifying a human identity... oh wait, it is already objectified (stupid social security numbers) | 00:05 |
*** gpaci_ has joined #schooltool | 00:05 | |
pcardune | but it is not integrated into schooltool yet | 00:05 |
smalekgh | hiya george | 00:05 |
fsufitch | i see | 00:05 |
fsufitch | now what do i know about integration again...? | 00:05 |
*** gpaci has quit IRC | 00:05 | |
pcardune | "integration" is just a fancy way of saying, make schooltool use the bar code generation thing to generate bar codes for a given object | 00:06 |
smalekgh | oh, random question... where would you be generating the bar-codes from? | 00:07 |
fsufitch | those pplz's code | 00:07 |
pcardune | we haven't decided yet, but probably from the __name__ attribute of the objects in question | 00:07 |
pcardune | so for a person, it would be their username | 00:07 |
fsufitch | u could imitate something of java and have a hashCode() method for everything | 00:07 |
fsufitch | and use that | 00:07 |
smalekgh | ew | 00:08 |
pcardune | fsufitch: yeah, but that is more than we need | 00:08 |
pcardune | python already has a hash() method | 00:08 |
pcardune | that will hash anything | 00:08 |
Makorihi | it gave me NameError: name 'interfaces' is not defined | 00:08 |
smalekgh | we really have issues with positioning and file-referencing... | 00:08 |
Makorihi | from scheduling.py | 00:08 |
pcardune | but it gets tricky when the objects change every time you restart the server | 00:08 |
smalekgh | like, insanely... | 00:09 |
Makorihi | when i said, 'interfaces.ISchedule' | 00:09 |
fsufitch | i see | 00:09 |
fsufitch | well, who are these ppl, so i know how to contact them ;) | 00:09 |
pcardune | there are special stuff in zope to handle that sort of thing | 00:09 |
pcardune | Don't ask me, I don't know what any of you look like | 00:09 |
pcardune | accept for eldar jeff dave and jason | 00:10 |
smalekgh | accept? | 00:10 |
pcardune | except | 00:10 |
smalekgh | nevermind | 00:10 |
fsufitch | well, that's useful... | 00:10 |
smalekgh | uh, could you answer our question? | 00:10 |
smalekgh | plzzzzz | 00:10 |
pcardune | smalekgh: what as your question | 00:10 |
pcardune | i don't see any question marks | 00:11 |
fsufitch | the new questions dont need question marks :) | 00:11 |
Makorihi | it gave me NameError: name 'interfaces' is not defined | 00:11 |
smalekgh | ? | 00:11 |
pcardune | oh, that is a statement | 00:11 |
smalekgh | yes, it is >_< | 00:11 |
smalekgh | err | 00:11 |
pcardune | did you import interfaces at the top? | 00:12 |
smalekgh | oh. uhhh | 00:12 |
fsufitch | pcardune, who are the people working on bar codes again? | 00:12 |
pcardune | bvuong and brittney | 00:12 |
smalekgh | ahahahahaha.... | 00:12 |
fsufitch | bvuong, where are u? | 00:12 |
fsufitch | i.e. are you at the ACC? | 00:13 |
smalekgh | yes he is | 00:13 |
*** mlinnell has joined #schooltool | 00:13 | |
Makorihi | we have this error now | 00:14 |
Makorihi | http://maddog.yhspatriot.net:8122/persons/hsuzumiya/schedule/ | 00:14 |
tdoggette | pcardune: in lieu of wdickers, are you our boss? We being the sifagent interns. | 00:14 |
pcardune | yes | 00:14 |
pcardune | did he depart? | 00:14 |
tdoggette | Yes. | 00:14 |
pcardune | me/eldar are your boss | 00:15 |
tdoggette | Leaving us with the privilege of creating flattenCourse and inflateCourse functions. | 00:15 |
pcardune | Makorihi: *looking* | 00:15 |
pcardune | tdoggette: ah, that sounds like a noble work | 00:15 |
smalekgh | don't look!!! | 00:16 |
pcardune | smalekgh: get rid of your __init__ method | 00:16 |
smalekgh | did | 00:16 |
smalekgh | just now >_< | 00:16 |
pcardune | tdoggette: you guys have working branches and everything? | 00:17 |
tdoggette | Yeah, we're all set up. | 00:17 |
cpcarey | are we working with schooltool Course objects here? or objects following SchoolCourseInfo? | 00:18 |
pcardune | cpcarey: both | 00:18 |
fsufitch | pcardune, so brittany gave me the intro to bar codes | 00:19 |
fsufitch | how do you want it to be integrated? | 00:19 |
smalekgh | http://maddog.yhspatriot.net:8122/persons/hsuzumiya/schedule/ happy errors :-) | 00:19 |
fsufitch | like, from the user perspective | 00:19 |
cpcarey | pcardune: could you please explain how that would work? | 00:20 |
pcardune | fsufitch: I want to be able to go to a url like http://schooltool/resources/someresource/barcode.pdf and get a pdf showing the barcode | 00:20 |
fsufitch | ok... | 00:20 |
pcardune | cpcarey: i'm not really sure as I haven't gotten a chance to look at SchoolCourseInfo | 00:21 |
fsufitch | how do you make pdfs out of the images? | 00:21 |
pcardune | cpcarey: how are they different? | 00:21 |
pcardune | fsufitch: I think they had it setup to generate either | 00:21 |
pcardune | if not, then gif instead of pdf | 00:21 |
pcardune | whatever file format works | 00:21 |
fsufitch | ok, so you just want to be able to access something's image that way | 00:21 |
pcardune | even multiple file formats would be fine | 00:21 |
pcardune | yeah | 00:21 |
fsufitch | ok | 00:21 |
pcardune | smalekgh: *looking* | 00:21 |
fsufitch | is there a launchpad blueprint about this? | 00:21 |
smalekgh | our code haseth been pushed, could thoust greatness please assist us in the figuring out of problems that sense of none make? | 00:22 |
smalekgh | Jama hit the enter key on that one <_< | 00:22 |
pcardune | fsufitch: no, not yet for some reason | 00:22 |
fsufitch | wouldnt that be the first thing to do ? ;) | 00:23 |
pcardune | fsufitch: someone ought to bug Lumiere about that | 00:23 |
pcardune | fsufitch: yes, go ahead and put it in | 00:23 |
smalekgh | 00:23 | |
pcardune | smalekgh: you have permission errors | 00:23 |
fsufitch | pcardune, under cando or schooltool? | 00:23 |
pcardune | oh wait... *i* have permission error | 00:23 |
cpcarey | pcardune: we think schooltool's Course object has just a title and a description, while the XML template SchoolCourseInfo has CourseCode, StateCourseCode, DistrictCourseCode, SubjectArea, InstructionalLevel, etc. | 00:23 |
Makorihi | what... | 00:23 |
smalekgh | ??? | 00:23 |
*** jfroche has quit IRC | 00:23 | |
smalekgh | *is laughing an insane amount* | 00:24 |
fsufitch | smalekgh, the command is /me | 00:24 |
pcardune | smalekgh: so, that error is because you dont have index_title defined in your browser view class | 00:24 |
* smalekgh is laughing and killing filip with a stranglehold from chains at the moment* | 00:24 | |
Makorihi | ? | 00:24 |
pcardune | cpcarey: yikes | 00:24 |
Makorihi | index_title? | 00:24 |
fsufitch | pcardune, where should i add the blueprint?? | 00:24 |
pcardune | Makorihi: it is in your .pt file | 00:25 |
smalekgh | ? | 00:25 |
Makorihi | how would that look like? | 00:25 |
pcardune | fsufitch: under cando | 00:25 |
fsufitch | aaaah, i'm going to ask eldar, he's not so busy :) | 00:25 |
Makorihi | ohh | 00:25 |
fsufitch | oh ok then | 00:25 |
*** tdoggette has quit IRC | 00:25 | |
cpcarey | pcardune: all of the XML template datatypes have a myriad of attributes | 00:25 |
cpcarey | pcardune: or at least most of them | 00:26 |
pcardune | cpcarey: is there anything that says they are required attributes? | 00:26 |
cpcarey | pcardune: let me check | 00:26 |
pcardune | fsufitch: on launchpad | 00:26 |
fsufitch | right, where else? | 00:27 |
fsufitch | :D | 00:27 |
pcardune | cpcarey: if it seems like there are attributes which absolutely must be there, then what we will probably do is create an adapter to an interface like ISIFAttributes | 00:27 |
pcardune | for the different objects we want to work with | 00:27 |
pcardune | fsufitch: and on the wiki | 00:27 |
fsufitch | agh, the wiki | 00:28 |
pcardune | cpcarey: and then there would be interfaces like: ISIFSchoolCourseInfo that have attributes mirroring the SIF standard | 00:28 |
cpcarey | pcardune: only the attributes are stated as required, but the elements don't say | 00:29 |
*** gpaci_ has quit IRC | 00:30 | |
*** gpaci has joined #schooltool | 00:30 | |
cpcarey | pcardune: i'm looking at the SchoolCourseInfo.xsd file from chesty | 00:30 |
pcardune | cpcarey: you should probably shoot an email off to tom hoffman or will and ask them about the SIF specification and whether it requires all the data to be there | 00:30 |
cpcarey | pcardune: will do | 00:31 |
fsufitch | pcardune, assignee is me? | 00:32 |
pcardune | yes | 00:32 |
pcardune | for some reason you can only assign one person in there | 00:32 |
fsufitch | and who's drafter and approver? | 00:32 |
pcardune | welsh and jason respectively | 00:33 |
fsufitch | ok | 00:33 |
*** eldar has left #schooltool | 00:33 | |
fsufitch | welsh is rdavidw | 00:34 |
fsufitch | right? | 00:34 |
fsufitch | pcardune, ping | 00:35 |
smalekgh | lisppaste5: url | 00:35 |
lisppaste5 | To use the lisppaste bot, visit http://paste.lisp.org/new/schooltool and enter your paste. | 00:35 |
*** mattva01 has joined #schooltool | 00:35 | |
lisppaste5 | smalekgh pasted "part of our interfaces.py <_<" at http://paste.lisp.org/display/43218 | 00:35 |
pcardune | yeah | 00:35 |
mattva01 | pcardune, when I clocked out, the 2 times were totally wrong | 00:35 |
pcardune | fsufitch: yeah | 00:36 |
smalekgh | I feel n00bish right now, is that paste right? | 00:36 |
smalekgh | like, minus the last cut-off part thinger | 00:36 |
pcardune | mattva01: it uses UTC time | 00:36 |
smalekgh | the whole 'self' business | 00:36 |
mattva01 | oh oops :) | 00:36 |
pcardune | mattva01: I once tried to do a spike and make it handle time zones correctly, but it didn't work in the end | 00:36 |
pcardune | timezones are an enormous pain | 00:36 |
mattva01 | ah | 00:37 |
* smalekgh points to question mark | 00:37 | |
pcardune | smalekgh: *looking* | 00:37 |
*** cpcarey has quit IRC | 00:37 | |
pcardune | smalekgh: no, you don't want any self | 00:38 |
smalekgh | <_< before I didn't have any self, and it complained about those attributes not existing >_< | 00:38 |
fsufitch | smalekgh, oops () : ) | 00:38 |
pcardune | smalekgh: yeah, it depends on the namespace | 00:38 |
smalekgh | <_< uhhhhh | 00:39 |
Makorihi | AttributeError: 'Schedule' object has no attribute 'courses' | 00:39 |
pcardune | you showed me the ISchedule object | 00:40 |
pcardune | not the Schedule object | 00:40 |
smalekgh | yep, the schedule object extends Ischedule though, so shouldn't it recieve the same attributes? | 00:40 |
*** bvuong has quit IRC | 00:40 | |
smalekgh | oh wait | 00:40 |
smalekgh | nevermind | 00:40 |
smalekgh | it doesn't <_< | 00:40 |
smalekgh | okay, that's on my todo list, cya peoples | 00:40 |
*** smalekgh has quit IRC | 00:41 | |
*** Makorihi has quit IRC | 00:41 | |
*** jelkner has quit IRC | 00:41 | |
*** fsufitch has quit IRC | 00:44 | |
*** mlinnell has quit IRC | 00:45 | |
*** gpaci has quit IRC | 00:47 | |
*** gpaci has joined #schooltool | 00:47 | |
aelkner | pcardune: it looks like the interns have headed out. Would you have time for me? | 00:50 |
pcardune | after your brother calls me | 00:50 |
aelkner | pcardune: ok, he'll be calling me, too, so after that? | 00:51 |
pcardune | sure | 00:51 |
pcardune | what did you wanted to talk to me about? | 00:51 |
aelkner | the batch system has changed a lot, so I was hoping you'd look at journal.pt with me and analyze the effect the changes have on it. | 00:52 |
pcardune | oh | 00:53 |
pcardune | ok | 00:53 |
pcardune | you could potentially remove batching for now | 00:53 |
pcardune | since we'll have to fix it later anyways | 00:54 |
aelkner | pcardune: for instance, there doesn't seem to be any batch_macros anymore. | 00:54 |
aelkner | right, I was thinking of that, but that seemed radical for little old me. | 00:54 |
pcardune | I think that is what I would do | 00:54 |
pcardune | either that or fix it :) | 00:54 |
aelkner | They seem to have gotten rid of batch_macros all together, so I wouldn't know what to fix. | 00:55 |
aelkner | I took eldar | 00:55 |
aelkner | 's suggestion | 00:55 |
pcardune | which is why I suggest you just get rid of it and move on without batching | 00:55 |
pcardune | I'm pretty sure that batching is something people rarely use | 00:56 |
aelkner | So it's ok to iterate over the contents rather than the batch? I'd be ok with that, but that would mean that 1000s of entries could appear. | 00:56 |
pcardune | yes | 00:56 |
pcardune | that would be fine | 00:56 |
aelkner | ok. will do. | 00:57 |
pcardune | for now at least | 00:57 |
pcardune | until we get batching sorted out | 00:57 |
aelkner | Yeh, and maybe eldar can sort batching out. | 00:57 |
pcardune | yeah | 00:57 |
aelkner | Can I use xml comments to comment out parts of page templates? This way, I don't get rid of the old stuff for good yet. | 00:58 |
*** AVN` has quit IRC | 00:59 | |
pcardune | you can never get rid of it for good... that is why we have revision control | 00:59 |
pcardune | just delete it | 00:59 |
aelkner | Something told me you would say that. :) | 00:59 |
*** mattva01 has quit IRC | 01:02 | |
aelkner | pcardune: I'm getting all kinds of problems starting my schooltool server: | 01:13 |
aelkner | First there are warnings about python versions. | 01:13 |
aelkner | Then there is a problem importing schooltool.app.main. | 01:13 |
aelkner | Have you run across this? | 01:14 |
pcardune | ummm | 01:15 |
pcardune | but you weren't getting these before? | 01:15 |
pcardune | what does it say? | 01:15 |
aelkner | pasting... | 01:15 |
lisppaste5 | aelkner pasted "schooltool startup errors" at http://paste.lisp.org/display/43221 | 01:16 |
aelkner | I haven't tried to start the server in quite a while. | 01:16 |
pcardune | oh | 01:17 |
aelkner | I did just do a fresh checkout of my branch and make. | 01:17 |
*** gpaci_ has joined #schooltool | 01:17 | |
*** gpaci has quit IRC | 01:17 | |
pcardune | aelkner: try running with python2.4? | 01:18 |
aelkner | How, by staring the server with make run? | 01:19 |
aelkner | make run worked! | 01:19 |
aelkner | I see that it uses python2.4. | 01:20 |
aelkner | pcardune: I can see why you have shifted the SIF effort to use make. More control that way. | 01:20 |
pcardune | yes | 01:21 |
pcardune | and you can also just do python2.4 schooltool-server.py | 01:21 |
pcardune | just because it's executable doesn't mean you have to execute it | 01:21 |
pcardune | and now to go work on my google summer of code project | 01:21 |
pcardune | you should check that out if you really want a trip into deep kim chee zope 3 | 01:21 |
*** rogerza has joined #schooltool | 01:24 | |
rogerza | hi all | 01:24 |
rogerza | just been to the website schooltool.org | 01:25 |
*** rogerza has left #schooltool | 01:27 | |
aelkner | pcardune: I'll save the deep zope 3 for when I've mastered the basics, but I think I will be interested in your AJAX work by the time the summer is up. | 01:29 |
pcardune | cool | 01:29 |
aelkner | pcardune: As schooltool manager, I go to the manager's page, but I don't see a link for Blog. Am I blind, or has it been removed? | 01:36 |
*** gpaci_ has quit IRC | 01:37 | |
pcardune | aelkner: maybe cando is not being loaded? | 01:42 |
pcardune | that is my suspicion at least | 01:42 |
pcardune | eldar supposedly fixed that problem | 01:42 |
*** didymo has joined #schooltool | 01:42 | |
aelkner | Perhaps I need to merge something other than the trunk in? | 01:43 |
aelkner | pcardune: I'll leave you alone for the rest of the night. I'll be signing on and looking for Eldar tomorrow morning. Thanks. | 01:45 |
pcardune | no, there is nothing else to merge | 01:46 |
pcardune | I haven't had a chance to run actual cando in a while | 01:46 |
pcardune | with all this SIF stuff | 01:46 |
*** fsufitch has joined #schooltool | 02:16 | |
*** fsufitch is now known as fsufitch_nowork | 02:16 | |
*** fsufitch_nowork has quit IRC | 02:16 | |
*** aelkner has quit IRC | 02:25 | |
*** fsufitch has joined #schooltool | 03:41 | |
*** fsufitch is now known as fsufitch_nowork | 03:43 | |
*** fsufitch_nowork has quit IRC | 04:09 | |
*** dwoo has left #schooltool | 04:31 | |
*** smalekgh has joined #schooltool | 05:07 | |
*** pcardune has quit IRC | 05:09 | |
smalekgh | anyone here I may ask a question about tals/sequences? | 05:15 |
*** jinty has quit IRC | 05:20 | |
*** gpaci has joined #schooltool | 05:31 | |
*** smalekgh has quit IRC | 05:47 | |
*** wjohnsto has quit IRC | 07:13 | |
*** E-nnovative has joined #schooltool | 07:38 | |
*** E-nnovative has quit IRC | 08:50 | |
*** E-nnovative has joined #schooltool | 09:53 | |
*** E-nnovative has quit IRC | 10:20 | |
*** jinty has joined #schooltool | 11:31 | |
*** jfroche has joined #schooltool | 11:41 | |
*** jfroche has quit IRC | 12:04 | |
*** E-nnovative has joined #schooltool | 12:46 | |
*** wrobel has joined #schooltool | 13:23 | |
*** E-nnovative1 has joined #schooltool | 13:28 | |
*** E-nnovative has quit IRC | 13:29 | |
*** jfroche has joined #schooltool | 13:29 | |
*** jfroche has quit IRC | 13:29 | |
*** E-nnovative1 has quit IRC | 13:55 | |
*** ignas has joined #schooltool | 14:04 | |
*** mgedmin has joined #schooltool | 14:14 | |
*** jfroche has joined #schooltool | 14:44 | |
*** alga has joined #SchoolTool | 14:50 | |
*** wrobel has left #schooltool | 14:53 | |
*** didymo has quit IRC | 15:24 | |
*** gpaci has quit IRC | 16:35 | |
ignas | setuptools are EVIL | 16:49 |
ignas | buildbot should work now though | 16:54 |
jfroche | ignas: have buildbot running on your branch now ? | 17:11 |
ignas | no | 17:12 |
ignas | but i have fixed the trunk buildbot | 17:12 |
jfroche | great, less mail :) | 17:13 |
*** pcardune has joined #schooltool | 17:15 | |
pcardune | hi everybody | 17:16 |
ignas | hi | 17:17 |
*** mgedmin has quit IRC | 17:48 | |
*** gpaci has joined #schooltool | 17:49 | |
* pcardune grimaces at the sight of hard coded file paths in code :/ | 17:50 | |
ignas | where ? | 17:53 |
ignas | who did that? | 17:54 |
*** gpaci_ has joined #schooltool | 18:01 | |
*** gpaci has quit IRC | 18:04 | |
pcardune | ignas: sifagent code | 18:06 |
pcardune | where is th1a when you need him? | 18:06 |
pcardune | ignas: the sif stuff is in major need of refactoring | 18:06 |
ignas | pcardune: no idea, i only see him in monday meetings lately | 18:06 |
ignas | pcardune: anyone except you capable of fixing it? | 18:07 |
*** gpaci_ has quit IRC | 18:07 | |
*** gpaci has joined #schooltool | 18:08 | |
pcardune | ignas: well a lot of the refactoring just involves making the code more readable | 18:08 |
pcardune | ignas: like this file for example http://codebrowse.launchpad.net/~chesty-devs/chesty/chesty-trunk/annotate/paul%40carduner.net-20070619041842-ke2juio8hmlx0axu?file_id=sif_exceptions.py-20070329154951-he3tabno2t3clr7y-129 | 18:09 |
pcardune | so I think anyone could just go through and make the code conform to PEP 8 | 18:10 |
pcardune | that would be a big step in the right direction | 18:10 |
ignas | ouch | 18:11 |
ignas | the code need some serious refactoring | 18:12 |
pcardune | yeah | 18:12 |
ignas | i mean the ammount of duplication | 18:12 |
ignas | eek | 18:12 |
pcardune | We need some good elisp scripts for this | 18:12 |
pcardune | except I can't find my emacs book | 18:12 |
ignas | i mean no PEP 8 can fix that | 18:17 |
ignas | you could reduce the ammount of code in there like 20 fold | 18:17 |
alga | unpythonic! | 18:17 |
*** gpaci has quit IRC | 18:24 | |
*** ignas has quit IRC | 18:38 | |
pcardune | this is discouraging | 18:50 |
*** gpaci has joined #schooltool | 18:59 | |
*** jinty has quit IRC | 19:07 | |
*** ignas has joined #schooltool | 19:09 | |
alga | pcardune: don't feel discouraged | 19:17 |
alga | it can -- and should -- be fixed | 19:17 |
alga | the first thing I'd do is remove all the duplicated exception __init__s | 19:17 |
alga | just set the different values on the class attributes | 19:18 |
alga | then see if it is possible to reduce the status* classes to a list or dict of strings | 19:18 |
alga | they seem especially unpythonic | 19:18 |
ignas | pcardune: can you link to the place they are being used? | 19:20 |
pcardune | http://codebrowse.launchpad.net/~chesty-devs/chesty/chesty-trunk/files/paul%40carduner.net-20070619041842-ke2juio8hmlx0axu?file_id=chesty-20070329154951-he3tabno2t3clr7y-120 | 19:20 |
pcardune | everywhere in there | 19:20 |
ignas | ouch they are raising classes | 19:21 |
ignas | how does that work at all | 19:21 |
ignas | i guess only because they have a __repr__ defined they can see the error message | 19:22 |
ignas | though i would refactor it to use normal exceptions | 19:22 |
ignas | and have 1 exception like SIF_XML_Error | 19:22 |
ignas | and pass it the id as a parameter | 19:22 |
ignas | as SIF_XML_Error(2) | 19:22 |
alga | that's how IOError works | 19:23 |
alga | it knows it ERRNO value and displays the message accordingly | 19:23 |
ignas | and define error messages as a dict in SIF_XML_Error | 19:23 |
pcardune | But I can't even test if the changes I'm making don't break the rest of the system | 19:33 |
ignas | no tests? | 19:35 |
pcardune | very incomplete tests | 19:36 |
pcardune | http://codebrowse.launchpad.net/~chesty-devs/chesty/chesty-trunk/annotate/paul%40carduner.net-20070619041842-ke2juio8hmlx0axu?file_id=doctests.txt-20070329154951-he3tabno2t3clr7y-134 | 19:37 |
pcardune | ignas: what is the difference between and Error and an Exception? | 19:39 |
ignas | hmm, you will probably have to add at least some tests for code that throws exceptions, and trust that if these tests pass - all the other code should continue to work | 19:39 |
ignas | pcardune: don't know really, what does python documentation say? | 19:40 |
pcardune | ignas: there is no such thing as an Error in python | 19:41 |
pcardune | I think tom just mixed terminology | 19:41 |
ignas | ouch, is he using bare excepts and then printing the repr of the thing he has caught? | 19:42 |
*** mgedmin has joined #schooltool | 19:47 | |
ignas | pcardune: the messages you get are not because of failing tests, apparently just constructing an Error object, logs some data into default logging stream | 19:55 |
*** cpcarey has joined #schooltool | 20:04 | |
ignas | pcardune: are you going to fix the exception file? | 20:13 |
pcardune | ignas: eventually | 20:13 |
ignas | pcardune: ok, i'll send you a patch then ;) | 20:13 |
pcardune | ok :) | 20:13 |
ignas | OMG | 20:20 |
ignas | now i get where these warnings are from | 20:20 |
ignas | if you throw SIF_SOME_ERROR -> you throw it | 20:20 |
ignas | if you call SIF_SOME_ERROR() | 20:20 |
ignas | you log it | 20:20 |
pcardune | hmm | 20:20 |
ignas | not 100% sure it's intentional | 20:21 |
pcardune | that isn't clear | 20:21 |
pcardune | ok, i'm going to setup testing to work right | 20:21 |
pcardune | what should I use for the test runner? | 20:21 |
ignas | i don't know - what does zope.testing egg depend on ? | 20:22 |
* mgedmin would be surprised to find it depending on anything but the python stdlib | 20:23 | |
ignas | whee emacs-fu | 20:35 |
*** ignas has quit IRC | 20:38 | |
pcardune | emacs-fu? | 20:38 |
*** ignas has joined #schooltool | 20:40 | |
ignas | hmm | 20:40 |
ignas | i was quite sure i have disabled Ctrl+Alt+Backspace | 20:40 |
pcardune | emacs-fu | 20:40 |
pcardune | he | 20:40 |
* mgedmin laughs | 20:42 | |
alga | :D | 20:42 |
* pcardune creates chesty-refactor branch on launchpad | 20:56 | |
*** jinty has joined #schooltool | 20:57 | |
lisppaste5 | ignas pasted "muffle warnings in doctests" at http://paste.lisp.org/display/43257 | 20:59 |
pcardune | ignas: that's one way | 21:00 |
* pcardune goes to take a shower | 21:01 | |
*** mgedmin has quit IRC | 21:29 | |
*** ignas has quit IRC | 21:42 | |
pcardune | does anyone know what an ack is? | 21:56 |
pcardune | the tests don't actually test anything, they only test that functions were called | 21:57 |
* pcardune considers how zope CA could come in handy here | 22:04 | |
alga | pcardune: http://www.catb.org/jargon/html/A/ACK.html | 22:24 |
pcardune | ah, i see | 22:25 |
alga | also, the jargon didn't mention there's an ACK bit in TCP headers, used in the TCP 3-way handshake | 22:27 |
pcardune | its all greek to me | 22:31 |
* pcardune reconsiders whether it was a good idea to do math instead of CS | 22:32 | |
alga | just read a Wikipedia entry on TCP and you'll know more about it than any CS graduate :-) | 22:36 |
*** alga has quit IRC | 22:37 | |
*** cpcarey has quit IRC | 22:41 | |
*** jinty has quit IRC | 22:55 | |
*** jinty has joined #schooltool | 23:01 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!