*** Fujitsu has joined #schooltool | 00:37 | |
*** didymo has joined #schooltool | 00:56 | |
*** ACSpike[Work] has quit IRC | 00:59 | |
*** pcardune has joined #schooltool | 01:30 | |
*** pcardune has quit IRC | 07:53 | |
*** Aiste has joined #schooltool | 10:59 | |
*** Aiste has quit IRC | 11:38 | |
*** povbot` has joined #schooltool | 11:48 | |
*** povbot has quit IRC | 12:04 | |
*** didymo has quit IRC | 13:42 | |
*** Lumiere changes topic to "SchoolTool development | IRC logs at http://source.schooltool.org/irclogs/ | Dev meetings Mon, 13:30 UTC (15:30 EET) | Use http://paste.lisp.org/new/schooltool for pasting | pcardune's Zope class, Saturdays at noon US/Eastern (GMT-4) (no class today) | CanDo Sprint 9-4 GMT-4" | 14:48 | |
*** lisppaste5 has quit IRC | 15:31 | |
*** lisppaste5 has joined #schooltool | 15:39 | |
*** ACSpike has joined #schooltool | 15:42 | |
ACSpike | good morning | 15:46 |
---|---|---|
ACSpike | oh no :-O the instructions for win32 binaries are 404 | 16:25 |
ACSpike | http://www.schooltool.org/documentation/developer-references/packaging/windows-binary-installers | 16:26 |
*** aelkner has joined #schooltool | 16:33 | |
*** Ninno has joined #schooltool | 16:33 | |
*** eldar has joined #schooltool | 16:33 | |
aelkner | th1a: are you there? | 16:34 |
*** Ninno has quit IRC | 16:34 | |
*** tdoggette has joined #schooltool | 16:34 | |
Lumiere | ACSpike: where's the link to that | 16:44 |
*** tdoggette has quit IRC | 17:39 | |
*** tdoggette has joined #schooltool | 17:41 | |
ACSpike | Lumiere: http://www.schooltool.org/bounties | 17:51 |
Lumiere | well | 18:25 |
Lumiere | th1a: needs to fix that | 18:25 |
*** smalekgh has joined #schooltool | 18:34 | |
*** pcardune has joined #schooltool | 18:35 | |
smalekgh | hi paul | 18:35 |
pcardune | hello everbody | 18:36 |
*** pcardune has quit IRC | 18:43 | |
*** pcardune has joined #schooltool | 18:44 | |
pcardune | hi eldar | 18:44 |
eldar | pcardune, hey | 18:45 |
smalekgh | Quick question: An adapter factory returns the same reference to the same adapter object everytime it's invoked with the same argument, right? | 18:47 |
pcardune | smalekgh: not unless you set it up that way | 18:48 |
pcardune | an adapter factory just returns an object that implements the desired interface | 18:48 |
*** jelkner has joined #schooltool | 18:51 | |
jelkner | hi paul | 18:53 |
pcardune | he jelkner | 18:53 |
smalekgh | So, I'd have to create a factory to produce the same reference to an adapter every time? | 18:54 |
jelkner | pcardune: do you see the other chat? | 18:54 |
smalekgh | (I'd say hi to you jeff, but you're right in front of me >_< ) | 18:55 |
jelkner | pcardune: ? | 18:56 |
pcardune | jelkner: do you see my messages? | 18:56 |
*** tehminkeh has joined #schooltool | 18:58 | |
*** AVN` has joined #schooltool | 18:58 | |
tehminkeh | hey | 18:58 |
pcardune | smalekgh: yes, you would need to create your own adapter, but i'm wondering what it is exactly thtat you are trying to do? | 18:58 |
*** AVN` has left #schooltool | 18:58 | |
tehminkeh | pcardune: we are little lost for how to move forward with the course selection project | 18:59 |
*** filip101 has joined #schooltool | 18:59 | |
* filip101 is Filip S. | 18:59 | |
*** AVN` has joined #schooltool | 18:59 | |
*** AVN` has left #schooltool | 18:59 | |
*** AVN` has joined #schooltool | 19:00 | |
AVN` | I am here | 19:00 |
pcardune | tehminkeh: well you've come to the right place | 19:00 |
* AVN` is Chris Beacham | 19:00 | |
pcardune | what can i do to help you? | 19:00 |
tehminkeh | well | 19:00 |
smalekgh | waiiiitttt... Nuuu! Okay, I've got some ideas | 19:00 |
tehminkeh | thats why i made it so open-ended | 19:00 |
pcardune | tehminkeh: :) | 19:00 |
tehminkeh | we just sort of need guidance for what to do next | 19:00 |
smalekgh | well | 19:01 |
smalekgh | not entirely | 19:01 |
smalekgh | I just want to run some ideas by you... | 19:01 |
pcardune | ok, go ahead | 19:01 |
*** whaddon has joined #schooltool | 19:02 | |
smalekgh | ICourseRequirement being an adapter for an ICourse with a custom factory that returns the same ICourseRequirement every time (so implementing code doesn't have to use a set of routines every time making code look messy when retrieving the course requirements for a course) | 19:02 |
smalekgh | and a CoursesTaken object | 19:02 |
smalekgh | which adapts an IPerson, with the same setup of ICourseRequirement | 19:02 |
pcardune | ah, yes | 19:02 |
pcardune | ok | 19:02 |
pcardune | you want to use an annotation adapter | 19:03 |
smalekgh | ? | 19:03 |
pcardune | so, when you adapt something you are given a context | 19:03 |
pcardune | in this case, if you say ICourseRequirement(someCourse) | 19:03 |
pcardune | then it looks up an adapter form ICourse to ICourseRequirement and passes it the someCourse object | 19:04 |
pcardune | what you can do is create the CourseRequirement object and store it in someCourse | 19:04 |
smalekgh | how...? | 19:04 |
pcardune | then the next time it gets adapters, you check if someCourse already has a CourseRequirement object, and return that rather than creating a new one | 19:04 |
pcardune | smalekgh: annotations :) | 19:04 |
smalekgh | yay >_< | 19:05 |
pcardune | I'll give you some code to look at that does that very thing | 19:05 |
smalekgh | I'm assuming that CoursesTaken would do well to be an annotation adapter as well | 19:06 |
pcardune | smalekgh: I would say that before you do any of this, you should write doctests | 19:07 |
pcardune | then I can look over the doctests and make sure you have a sound implementation idea | 19:07 |
smalekgh | aye | 19:08 |
pcardune | I can even help you with the doctests if we start up a gobby session | 19:08 |
smalekgh | ooo, gobby | 19:08 |
smalekgh | uh, who makes the session? | 19:08 |
pcardune | I think there is one already running on maddog | 19:11 |
smalekgh | which port? | 19:12 |
pcardune | the default one? | 19:13 |
smalekgh | the default one that says ' '? | 19:14 |
pcardune | actually, a session was not running | 19:14 |
pcardune | I'm starting it now | 19:14 |
smalekgh | oh, there it is, 3626? | 19:14 |
pcardune | 6522 | 19:15 |
smalekgh | so much for defaults | 19:15 |
pcardune | i thought 6522 was the default... it is for me | 19:15 |
smalekgh | oye | 19:15 |
*** lahDdah has joined #schooltool | 19:25 | |
*** lahDdah has left #schooltool | 19:26 | |
*** tehminkeh has quit IRC | 19:36 | |
filip101 | ello | 20:00 |
pcardune | hi filip101 | 20:00 |
smalekgh | back on ptuty | 20:01 |
smalekgh | er | 20:01 |
smalekgh | poeei | 20:01 |
smalekgh | ... | 20:01 |
smalekgh | gobby!!! | 20:01 |
filip101 | so my post object has a few fields | 20:01 |
filip101 | they're subject, text, and posttime | 20:01 |
filip101 | the first two are self-explanatory | 20:01 |
filip101 | and the posttime is for sorting the posts in a Thread | 20:01 |
filip101 | the trouble is, when i create a post object, it asks me for the datetime | 20:02 |
filip101 | how can i make it not do that and just use datetime.now()? | 20:02 |
pcardune | filip101: I assume you have an autogenerated addForm for the post right? | 20:03 |
pcardune | You can specify what attributes should be included in the form | 20:03 |
pcardune | so just leave out the posttime attribute | 20:03 |
pcardune | then it won't ask you for it :) | 20:03 |
pcardune | then in the constructor for you post object, just set posttime to datetime.now() | 20:04 |
ACSpike | what happens if you make posttime read only? | 20:04 |
* ACSpike saw that in the manual :-) | 20:04 | |
filip101 | pcardune: how can i specifyt which attributes to put in the form? | 20:04 |
filip101 | because the forum IS auto-generated | 20:05 |
filip101 | do i need to change configure.zcml? | 20:05 |
pcardune | filip101: it is an attribute of the addform zcml directive | 20:05 |
pcardune | filip101: I can't remember off the top of my head so you'll have to look it up with the apidoc tool | 20:06 |
filip101 | ok | 20:06 |
pcardune | filip101: have you used apidoc before? | 20:06 |
filip101 | no... | 20:06 |
pcardune | start up your zope server then go to http://yoursever:port/++apidoc++ | 20:06 |
filip101 | okey | 20:06 |
pcardune | then you can access all sorts of documentation for zope including zcml stuff | 20:06 |
filip101 | sounds nice | 20:07 |
filip101 | starting server... | 20:07 |
filip101 | oh crap i have errors | 20:07 |
filip101 | i'll fix those first and check in with you when i get the apidoc up | 20:07 |
pcardune | ok | 20:09 |
pcardune | jelkner: I regret to inform you that some of your gradebook fixes might not be fixed today | 20:15 |
pcardune | unless I stop helping interns :) | 20:15 |
pcardune | it is a problem which can be solved... just requires my undivided attention | 20:15 |
filip101 | i'm sorry :( | 20:16 |
filip101 | there should be a pcardune-bot | 20:16 |
filip101 | that answers all of our questions | 20:16 |
filip101 | magically | 20:16 |
pcardune | Actually, I could probably fix it after everyone gets tired of programming (I know I will outlast everyone here :) | 20:16 |
filip101 | how can i run the today() method in the datetime class? | 20:18 |
filip101 | datetime.today() doesn't satisfy it | 20:18 |
pcardune | ummm | 20:18 |
pcardune | let me look | 20:19 |
filip101 | oh wow | 20:22 |
filip101 | datetime is the module | 20:22 |
filip101 | and datetime is the class | 20:22 |
filip101 | so datetime.datetime.now() | 20:22 |
filip101 | grr i hate it when module name is the same as class name | 20:22 |
smalekgh | then import and be happy :-) | 20:23 |
filip101 | i did... | 20:23 |
filip101 | but i'm not... | 20:23 |
pcardune | filip101: i am not a fan of datetime module | 20:26 |
pcardune | it is not intuitive | 20:26 |
pcardune | filip101: I would play around with the time module as well | 20:26 |
filip101 | i realized | 20:26 |
filip101 | *that it's not intuitive | 20:26 |
Lumiere | yea | 20:27 |
Lumiere | stick with python's internal time module | 20:27 |
filip101 | what's that? | 20:27 |
Lumiere | open a python prompt | 20:27 |
Lumiere | import time | 20:28 |
Lumiere | help(time) | 20:28 |
filip101 | ok | 20:29 |
pcardune | actually... | 20:29 |
pcardune | here is how you should do it | 20:29 |
pcardune | from datetime import datetime | 20:29 |
pcardune | datetime.utcnow() | 20:29 |
filip101 | soo... much... advice... | 20:29 |
* filip101 gasps for breath | 20:29 | |
pcardune | filip101: that is how we do it in cando | 20:29 |
filip101 | i see :) | 20:30 |
smalekgh | you're making it sound like a gang we just joined | 20:30 |
smalekgh | 'That's how we do it in cando' | 20:30 |
filip101 | lol | 20:30 |
smalekgh | *pulls out gun and mobster outfit | 20:30 |
filip101 | and are datetime objects comparable? | 20:30 |
filip101 | if i do cmp(somedate, someotherdate) | 20:30 |
pcardune | yep | 20:30 |
filip101 | SWEET! | 20:30 |
filip101 | yay! | 20:30 |
filip101 | smalekgh: you could see it as a gang... | 20:31 |
filip101 | a nonviolent gang | 20:31 |
pcardune | you can even do datetime.utcnow()-datetime.utcnow() and see how long it took to calculate that one little operation :) | 20:32 |
filip101 | 20:32 | |
smalekgh | gobby died | 20:35 |
pcardune | I restarted it | 20:35 |
smalekgh | as in | 20:36 |
smalekgh | die die | 20:36 |
filip101 | is this right for sorting the posts? | 20:39 |
filip101 | sorted(self.context.values(), | 20:39 |
filip101 | cmp=lambda a,b: cmp(a.posttime, b.posttime)) | 20:39 |
pcardune | yep | 20:39 |
filip101 | somehow it's not working | 20:39 |
filip101 | and they're still being sorted by alpha variable name | 20:40 |
pcardune | well, sorted returns the sorted list | 20:40 |
pcardune | it doesn't do a sort in place | 20:40 |
pcardune | so you want to use the result of sorted rather than the thing you are sorting | 20:40 |
filip101 | yes, i have: def getPosts(self): | 20:40 |
filip101 | return sorted(...... blah blah | 20:41 |
filip101 | this in browser.py | 20:41 |
pcardune | ok | 20:45 |
pcardune | what does your page template look like filip101? | 20:46 |
lisppaste5 | filip101 pasted "thread.pt" at http://paste.lisp.org/display/40077 | 20:47 |
filip101 | hm the word topic seems to be cut off | 20:48 |
filip101 | i copy pasted from Eterm, so excuse the indentation | 20:49 |
pcardune | filip101: are you using data you already entered into the system? | 20:49 |
filip101 | no | 20:49 |
pcardune | before using utcnow? | 20:49 |
filip101 | freshly entered | 20:49 |
filip101 | after utcnow | 20:49 |
pcardune | hmmm | 20:50 |
pcardune | can I see your browser.py file too? | 20:50 |
filip101 | ok | 20:51 |
lisppaste5 | filip101 annotated #40077 with "browser.py" at http://paste.lisp.org/display/40077#1 | 20:51 |
filip101 | is there something horribly wrong that i'm doing? | 20:53 |
pcardune | filip101: are you sure it should appear in a different order than what you get? could it be that alphabetical order happens to be the same as time order? | 20:53 |
pcardune | if not, then at this point I would use the python debugger | 20:54 |
pcardune | everything you've done looks right to me | 20:54 |
pcardune | filip101: have you ever used the python debugger before? | 20:54 |
filip101 | no | 20:54 |
pcardune | check this out: http://www.ferg.org/papers/debugging_in_python.html | 20:55 |
pcardune | it is a great skill to learn | 20:55 |
filip101 | ok | 20:55 |
pcardune | I use the python debugger *all the time* | 20:55 |
smalekgh | I am | 20:59 |
smalekgh | sick and tired | 20:59 |
smalekgh | of gobby dying | 20:59 |
smalekgh | but at least I saved everything :-) | 20:59 |
pcardune | that is annoying | 20:59 |
pcardune | well, my goal is that at the end of the summer I will have a zope3 gobby ajax web app | 20:59 |
pcardune | ok, it's up again | 21:00 |
smalekgh | when declaring something an adapter of something else, do you do that adapting declaration in the concrete class or the interface? | 21:04 |
pcardune | depends | 21:09 |
pcardune | smalekgh: I think in this case I would do it in the class | 21:09 |
smalekgh | kk | 21:09 |
Lumiere | th1a: here? | 21:16 |
smalekgh | how do you commit without having the text doc popping up? | 21:19 |
*** AVN` has quit IRC | 21:21 | |
Lumiere | smalekgh: you should always put a message for committing | 21:22 |
*** smalekgh has quit IRC | 21:22 | |
Lumiere | if you just have a very short message in bzr | 21:22 |
Lumiere | <_< | 21:22 |
eldar | >_> | 21:26 |
* Lumiere fixed it verbally | 21:28 | |
*** smalekgh has joined #schooltool | 21:31 | |
smalekgh | gah | 21:31 |
smalekgh | irc died | 21:31 |
*** tehminkeh has joined #schooltool | 21:32 | |
tehminkeh | im here pcardune! | 21:32 |
tehminkeh | do not fear! | 21:32 |
*** Makorihi has joined #schooltool | 21:32 | |
Makorihi | this is jama speaking | 21:32 |
pcardune | so did gobby | 21:33 |
pcardune | but it is back up now | 21:33 |
smalekgh | awww | 21:34 |
smalekgh | not again | 21:34 |
tehminkeh | bb in a sec | 21:34 |
pcardune | yeah... not very fun at all | 21:34 |
smalekgh | I'm just doing doc testing right now >_< | 21:35 |
smalekgh | like, the acutal doc-testing | 21:35 |
smalekgh | but | 21:35 |
smalekgh | I think there's something wrong with the way I organized the files, un secendo... | 21:35 |
*** tdoggette_ has joined #schooltool | 21:41 | |
*** tdoggette has quit IRC | 21:44 | |
jelkner | pcardune: what are you up to now? | 21:45 |
pcardune | I just created a new branch for work on the gradebook | 21:45 |
jelkner | cool | 21:45 |
pcardune | everyone seems to be gettig a long fine with what they are working on | 21:45 |
jelkner | i have an intern who needs help | 21:45 |
smalekgh | paul has one too (yo) | 21:46 |
jelkner | bvoung is working on bar coding | 21:46 |
filip101 | i *am* one too | 21:46 |
jelkner | he has a library that allen downy sent him | 21:46 |
smalekgh | I am retrieving this error from my doc test: | 21:46 |
smalekgh | File "/home/bazaar/schooltool/src/schooltool/scheduling/README.txt", line 63, in README.txt | 21:46 |
smalekgh | Failed example: | 21:46 |
smalekgh | from scheduling.courserequirements import CourseRequirements | 21:46 |
smalekgh | Exception raised: | 21:46 |
smalekgh | Traceback (most recent call last): | 21:46 |
smalekgh | File "/home/bazaar/schooltool/Zope3/src/zope/testing/doctest.py", line 1256, in __run | 21:46 |
smalekgh | compileflags, 1) in test.globs | 21:46 |
jelkner | but he struggling to understand how it works | 21:46 |
smalekgh | File "<doctest README.txt[16]>", line 1, in ? | 21:46 |
smalekgh | from scheduling.courserequirements import CourseRequirements | 21:46 |
smalekgh | ImportError: No module named scheduling.courserequirements | 21:46 |
filip101 | smalekgh: try lisppaste | 21:46 |
smalekgh | oh | 21:46 |
filip101 | paste.lisp.org | 21:47 |
smalekgh | ... er, how? again? | 21:47 |
filip101 | pick the channel #schooltool | 21:47 |
filip101 | put your username (smalekgh) | 21:47 |
filip101 | and paste there | 21:47 |
filip101 | it will give us a link to your paste | 21:47 |
smalekgh | aye | 21:47 |
filip101 | see the lisppaste5 user on this channel/ | 21:48 |
filip101 | it's there for a reason | 21:48 |
*** bvuong has joined #schooltool | 21:48 | |
pcardune | hi bvuong | 21:48 |
lisppaste5 | smalekgh pasted "problem" at http://paste.lisp.org/display/40079 | 21:48 |
bvuong | hey | 21:48 |
bvuong | I have the bookland library to make bar codes | 21:48 |
*** filip101 has left #schooltool | 21:48 | |
pcardune | smalekgh: have you created the courserequirement.py file? | 21:49 |
bvuong | not yet | 21:49 |
*** filip101 has joined #schooltool | 21:49 | |
bvuong | oh nvm | 21:49 |
pcardune | bvuong: could you give me a link to that library? | 21:49 |
bvuong | sure | 21:49 |
smalekgh | courserequirements.py was created, and is in the dir | 21:49 |
pcardune | smalekgh: is the scheduling dirctory in the pythonpath? | 21:49 |
bvuong | here's the link: http://www.tux.org/~milgram/bookland/ | 21:50 |
smalekgh | uh, well, it would have to be for the rest of the imports to work... | 21:50 |
smalekgh | which I don't know, because there are so many errors... | 21:50 |
smalekgh | how would I modify the pythonpath? | 21:50 |
eldar | export PYTHONPATH=$PYTHONPATH:youraddages | 21:51 |
smalekgh | thanks eldar | 21:51 |
smalekgh | wait | 21:51 |
smalekgh | if I did that in the directory scheduling existed | 21:51 |
smalekgh | would I still have to paste the entire absolute filepath? | 21:52 |
pcardune | smalekgh: use the ./test.py -1m scheduling command so it only shows the first error | 21:52 |
smalekgh | o | 21:52 |
smalekgh | kk | 21:52 |
pcardune | bvuong: looks like a nice little program | 21:52 |
pcardune | do you have any specific problems or questions? | 21:53 |
smalekgh | -m1 still pastes a heck of a lot of stuff | 21:53 |
bvuong | I'm wondering where the eps file is created in the program | 21:53 |
pcardune | smalekgh: use -1m | 21:55 |
smalekgh | -1m says an error | 21:55 |
pcardune | bvuong: I would recommend just using system calls to run the program and get the output | 21:55 |
smalekgh | oh, yay, no module named scheduling, allelujah | 21:56 |
bvuong | you mean running the bookland program? | 21:56 |
pcardune | bvuong: yeah | 21:56 |
pcardune | if we need specific modifications, we can work on that later | 21:56 |
bvuong | I did use the bookland program before | 21:57 |
*** tehminkeh has quit IRC | 21:57 | |
pcardune | smalekgh: to add that module, copy the scheduling-configure.py file into schooltool-skel/etc/package-includes/ | 21:57 |
bvuong | when I type the bar code number after typing "./bookland -a" it would produce an eps file, displaying a bar code image | 21:57 |
pcardune | bvuong: yep | 21:59 |
pcardune | what are you trying to get it to do? | 21:59 |
bvuong | to produce a bar code. which I did | 21:59 |
pcardune | so now what are you trying to get it to do? | 21:59 |
bvuong | now, I just need to know how it works, by lookin inside the file. | 22:00 |
pcardune | why? | 22:00 |
pcardune | you don't need to replicate it's functionality... you just need to use its functionality | 22:00 |
bvuong | bookland can only produce ISBN and ISMN bar codes | 22:01 |
jelkner | the problem is at this point it seems specially designed for producing ISBN bar codes | 22:01 |
jelkner | hence the name | 22:01 |
pcardune | right | 22:01 |
bvuong | Mr. Elkner told me to make a program that can produce bar codes of anything. | 22:01 |
jelkner | we need a general purpose bar code creator for the resource manager | 22:01 |
bvuong | where can I find one? | 22:02 |
pcardune | why not use ISBN numbers? | 22:02 |
ACSpike | does it need to be eps? | 22:02 |
jelkner | the schools already have a numbering scheme | 22:02 |
bvuong | an eps file is the result of the program | 22:03 |
pcardune | all you have to do is create a one-to-one correspondance between the school's numbering scheme and the ISBN numbering scheme | 22:03 |
jelkner | we need to adapt our software to their practice, not their practice to our software ;-) | 22:03 |
Lumiere | there is a python libary | 22:03 |
Lumiere | but... we were using a utility | 22:03 |
Lumiere | that produced ascii text | 22:03 |
Lumiere | under a barcode that produced the ascii text | 22:03 |
bvuong | do you know where the python library is? | 22:04 |
Lumiere | http://ascii.qarchive.org/software.html | 22:04 |
ACSpike | someone recently submitted python code to create svg barcodes to inkscape http://sourceforge.net/tracker/index.php?func=detail&aid=1681456&group_id=93438&atid=604308 | 22:04 |
*** tehminkeh has joined #schooltool | 22:04 | |
Lumiere | ACSpike: nice... | 22:05 |
bvuong | should I download it and check it out? | 22:05 |
Lumiere | that's the code that you want to produce... and yes | 22:05 |
filip101 | pcardune: datetime objects can't be compared using cmp() | 22:06 |
filip101 | i've been wasting my time :( | 22:06 |
Lumiere | filip101: try with > or < | 22:07 |
filip101 | is there a way to use the time as an int in the number of milliseconds since UNIX epoch? | 22:07 |
filip101 | ok... | 22:07 |
Lumiere | bvuong: I suggest joining #python | 22:07 |
Lumiere | and asking if anyone knows a barcode library | 22:07 |
bvuong | ok | 22:07 |
ACSpike | heh, what are the requirements for the barcode library, I just pasted one. | 22:07 |
filip101 | < and > don't work | 22:08 |
pcardune | filip101: they work for me? | 22:08 |
filip101 | o_O | 22:08 |
filip101 | that's... odd | 22:08 |
pcardune | datetime.utcnow()<datetime.utcnow() give me True and datetime.utcnow()<datetime.utcnow() gives me False.. what do you get? | 22:08 |
pcardune | woops | 22:08 |
pcardune | datetime.utcnow()<datetime.utcnow() give me True and datetime.utcnow()>datetime.utcnow() gives me False.. what do you get? | 22:09 |
*** bvuong has quit IRC | 22:09 | |
filip101 | hang on | 22:09 |
*** bvuong has joined #schooltool | 22:11 | |
bvuong | hello? | 22:13 |
pcardune | bvuong: hello | 22:13 |
bvuong | what should I do then? | 22:14 |
pcardune | jelkner: the problem with having sprints on saturdays is that when there are schooltool questions, no one is around to answer :/ | 22:14 |
bvuong | should I still explore the bookland file again? | 22:14 |
pcardune | bvuong: I think you should look for a python barcode library | 22:14 |
bvuong | well, bookland is one though | 22:15 |
ACSpike | bvuong: what are your requirements for a python barcode library? | 22:15 |
Lumiere | ACSpike: needs to do ascii -> barcode | 22:17 |
Lumiere | and then read it | 22:17 |
Lumiere | (off a CueCat) | 22:17 |
bvuong | that's what I need to do? | 22:17 |
Lumiere | the requirement is it write/read a barcode that is ascii text | 22:18 |
ACSpike | wouldn't the cuecat do the interpretation of the barcode back into ascii? | 22:18 |
Lumiere | yes | 22:18 |
jelkner | pcardune: what do you mean, mr carduner, we have you! ;-) | 22:18 |
ACSpike | what's a cuecat? | 22:18 |
bvuong | it's a bar code reader | 22:18 |
ACSpike | http://en.wikipedia.org/wiki/CueCat | 22:18 |
Lumiere | yes | 22:18 |
Lumiere | we have a few free cuecats | 22:18 |
ACSpike | most of the barcode readers I've seen just spit text back at you via serial or keyboard | 22:19 |
pcardune | jelkner: yeah, but I'm not as up to date on schooltool development as ignas | 22:19 |
ACSpike | what format does the barcode need to be in? eps? paper? | 22:19 |
pcardune | jelkner: and i am having trouble getting tests to pass in schooltool and I am wondering why they are not passing | 22:19 |
ACSpike | the code needs to be 3 of 9? | 22:20 |
Lumiere | I'd say paper in the end | 22:20 |
jelkner | pcardune: so you will leave today with lots of learning opportunities when next you talk to him, right? | 22:20 |
Lumiere | and whatever code works | 22:20 |
bvuong | what you mean by paper? | 22:20 |
Lumiere | bvuong: the normally white stuff | 22:21 |
Lumiere | that you write on... | 22:21 |
bvuong | oh | 22:21 |
Lumiere | or a label | 22:21 |
bvuong | you mean printing? | 22:21 |
ACSpike | well, I'm just wondering what the barcodes will be used for | 22:21 |
ACSpike | books? | 22:21 |
ACSpike | library? | 22:21 |
ACSpike | id cards? etc | 22:21 |
Lumiere | ACSpike: check in and out of resources | 22:21 |
ACSpike | ok | 22:21 |
Lumiere | the resource short id matching the barcode | 22:21 |
ACSpike | I think 3 of 9 works pretty well just from an ordinary lazer printer | 22:21 |
Lumiere | would be easiest imo | 22:21 |
Lumiere | is 3 of 9 what the link I pasted does? | 22:22 |
ACSpike | some other codes are too detailed | 22:22 |
pcardune | jelkner: no | 22:22 |
Lumiere | ok | 22:22 |
pcardune | jelkner: it is very bad when a fresh checkout of the trunk yields a lot of broken tests | 22:22 |
pcardune | jelkner: that means something is very amiss in the schooltool repo, or that I am running tests wrong | 22:22 |
pcardune | I can't/shouldn't attempt anything until i have a bunch of passing tests to break | 22:23 |
ACSpike | Lumiere: I think so | 22:23 |
ACSpike | how will the library be used? | 22:24 |
smalekgh | I cannot import schooltool.course.* without having the thing go whacked out and say ImportError: cannot import name CourseContainer | 22:25 |
smalekgh | even though I'm doing NOTHING with it | 22:25 |
ACSpike | Lumiere: I think http://www.gnu.org/software/barcode/barcode.html may be the most popular open source barcode software | 22:26 |
pcardune | smalekgh: try doing import schooltool.course then after that import schooltool.course.* | 22:27 |
smalekgh | the same thing happened in the code that you wrote | 22:32 |
smalekgh | and that doesn't fix anything | 22:33 |
ACSpike | perhaps a small bit of code to generate barcodes in reportlab. or even just a barcode font and reportlab would work | 22:33 |
smalekgh | as far as I can tell, the error is happening in a portion of code that isn't even mine | 22:33 |
pcardune | smalekgh: that is disconcerting | 22:36 |
pcardune | you may have found a bug in schooltool? | 22:36 |
smalekgh | insanely evil | 22:37 |
pcardune | I really have to get some lunch | 22:37 |
smalekgh | where do I report bugs? | 22:37 |
pcardune | Ask eldar to help you | 22:37 |
smalekgh | he said to ask you | 22:37 |
smalekgh | because he couldn't | 22:37 |
pcardune | I'll be back in 15 minutes or so | 22:37 |
pcardune | smalekgh: try to fix the bug then :) | 22:37 |
smalekgh | the bug in schooltool??? | 22:37 |
pcardune | yeah | 22:37 |
pcardune | if it is really just an import error then it should be easy | 22:37 |
pcardune | you might want to make sure that no functional tests are running | 22:38 |
pcardune | and that you are just running unit tests | 22:38 |
Lumiere | ACSpike: that should work | 22:38 |
pcardune | because functional test setups have changed in schooltool and the scheduling package hasn't been modified to handle that yet | 22:38 |
pcardune | that might be the problem | 22:39 |
pcardune | eldar can help you with making sure *only* unit tests are running | 22:39 |
pcardune | i'll be back in 15 | 22:39 |
*** pcardune has quit IRC | 22:39 | |
*** jinty has joined #schooltool | 22:44 | |
*** tehminkeh has quit IRC | 22:46 | |
*** tdoggette_ has quit IRC | 22:49 | |
Lumiere | hi jinty | 22:57 |
jinty | hey Lumiere | 22:57 |
* jinty is trying to figure out how to do IRC on a mac | 22:58 | |
Lumiere | adium... | 23:04 |
Lumiere | bbiab | 23:04 |
smalekgh | how dost thou runneth a unit doc-test from the sameth directoryeth that oneth iseth ineth? | 23:07 |
*** bvuong has quit IRC | 23:10 | |
whaddon | pcardune: Do you have a working timeclock instance? | 23:11 |
smalekgh | he's logged off | 23:11 |
*** smalekgh has quit IRC | 23:13 | |
*** pcardune has joined #schooltool | 23:21 | |
pcardune | eldar: how is it going? | 23:22 |
eldar | pcardune, I wish I had more than a pair of ears and more than one brain right now | 23:22 |
pcardune | yep :) | 23:23 |
pcardune | tell me who needs help | 23:23 |
filip101 | hello | 23:23 |
pcardune | filip101: did you manage to get the sorting? | 23:23 |
filip101 | i made my own sort function and everything | 23:24 |
eldar | Masood is having issues running his tests, I forgot the syntax for running the test.py from a directory you're in, "test.py -1u -s ." doesn't work anymore | 23:24 |
filip101 | yet due to voodoo or something else completely intangible, it doesnt work | 23:24 |
ACSpike | pcardune: do you want feedback and bug reports on your zope class? | 23:24 |
pcardune | ACSpike: yes | 23:24 |
pcardune | ACSpike: I believe there is even a good place to put them, let me look | 23:24 |
pcardune | ACSpike: report them here: https://bugs.launchpad.net/zcontact/ | 23:27 |
ACSpike | ok, thanks. I'll be sure to use that. | 23:30 |
pcardune | eldar: yeah... test running has changed a bit... I wish we would get emails about these sort of major changes | 23:31 |
pcardune | I don't feel like reading a diff to figure out what the change was | 23:31 |
pcardune | eldar: they ripped out the old schooltool test runner and now use the zope test runner | 23:32 |
pcardune | they way I have been running tests is ./test.py -m some.module | 23:33 |
filip101 | pcardune: is there a way that when i make an object i wouldn't need to put the object name next to the add button? | 23:34 |
eldar | oh okay | 23:34 |
pcardune | filip101: I'm not sure what you mean | 23:35 |
filip101 | when i add an object in the ZMI, (my forum post for instance) | 23:36 |
filip101 | i get an autogen form | 23:36 |
filip101 | with Subject, Text, fields | 23:36 |
filip101 | Refresh, Add, buttons | 23:36 |
filip101 | and a textbox that asks for an Object Name | 23:36 |
*** ACSpike has left #schooltool | 23:37 | |
pcardune | filip101: oh , so you want to get rid of the textbox for the Object Name | 23:37 |
filip101 | yes | 23:37 |
pcardune | in that case you have to create your own addform template | 23:37 |
pcardune | which is somewhat tricky | 23:38 |
filip101 | i c | 23:38 |
pcardune | I would move on to other things first | 23:38 |
filip101 | do i have to do the same thing to remodel the look of the ZMI? | 23:38 |
filip101 | except for the view template | 23:38 |
pcardune | yeah | 23:40 |
pcardune | actually if you can find the default addform template, you could just copy that and modify it | 23:40 |
filip101 | ok | 23:40 |
* filip101 puts on scavenger hunt gear | 23:40 | |
filip101 | pcardune: people say that I need to talk to you about my progress | 23:45 |
pcardune | filip101: so talk to me about your progress :) | 23:46 |
filip101 | i pushed the latest revision to maddog.yhspatriot.net/~fsufitch/forum/ | 23:46 |
filip101 | to get stuff, branch it from there | 23:46 |
filip101 | well... | 23:46 |
filip101 | progress... | 23:46 |
filip101 | threads now work | 23:46 |
filip101 | posts work | 23:46 |
filip101 | one other thing i might want is making posts know who posted them | 23:47 |
filip101 | but that comes later | 23:47 |
pcardune | that is a good idea | 23:47 |
filip101 | what i want to do next is to make "topics" | 23:47 |
filip101 | that can contain other topics or threads | 23:47 |
filip101 | this to make the whole tree system of the forum | 23:48 |
pcardune | yeah | 23:48 |
pcardune | do have ideas on how to do that? | 23:48 |
filip101 | then configure it that non-admin, but authenticated users will be able to make new threads or posts | 23:48 |
filip101 | um | 23:48 |
filip101 | still with Containers | 23:48 |
filip101 | and with multiple object limits | 23:48 |
pcardune | yeah | 23:49 |
pcardune | btw, in post.py you want it to say self.posttime = datetime.utcnow() | 23:49 |
pcardune | yours says postime = datetime.utcnow() | 23:49 |
filip101 | why self? | 23:49 |
pcardune | that will just set the local posttime variable... not the one in the class scope | 23:50 |
filip101 | oh i see | 23:50 |
filip101 | <_< | 23:50 |
filip101 | maybe that was one reason it didnt work | 23:50 |
*** Makorihi has quit IRC | 23:50 | |
pcardune | filip101: yep :) | 23:50 |
filip101 | for future reference, is there a way i can store user data for different users? | 23:51 |
filip101 | like display images and such | 23:51 |
pcardune | yes | 23:51 |
pcardune | you will have objects for the different users | 23:52 |
filip101 | i see | 23:52 |
filip101 | just out of sight of the general public | 23:52 |
filip101 | wow, Zope just pwned the forum I was making in PHP | 23:52 |
filip101 | <_< | 23:52 |
pcardune | yep :) | 23:54 |
pcardune | Zope pwns a lot of things if you put enough time and effort into it | 23:54 |
filip101 | lol, i see that now | 23:55 |
filip101 | now, there's one more thing i want to do today | 23:55 |
pcardune | yep? | 23:55 |
filip101 | my laptop's zope doesnt see my forum module | 23:55 |
*** smalekgh has joined #schooltool | 23:56 | |
smalekgh | hi paul! | 23:56 |
pcardune | hi smalekgh | 23:56 |
smalekgh | how does one go about running doc-tests from within the current directory? | 23:56 |
pcardune | smalekgh: ../../../test.py whatever | 23:57 |
smalekgh | ... that's exactly what eldar did and the test failed... okay, to something less specific: | 23:57 |
smalekgh | how does one make the test recognize the module it's running? | 23:57 |
smalekgh | because the test continuously complained that the scheduling module didn't exist | 23:58 |
pcardune | did you put scheduling-configure.zcml into the right place? | 23:58 |
smalekgh | SHOOT!!! I think not... | 23:58 |
filip101 | pcardune: so how do i make my zope see my forum files? | 23:59 |
pcardune | filip101: the same thing I told filip101 | 23:59 |
pcardune | :) | 23:59 |
filip101 | say wha? | 23:59 |
pcardune | make sure you have a forum-configure.zcml file in the package-includes directory | 23:59 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!