*** aelkner has joined #schooltool | 01:58 | |
*** wdickers has joined #schooltool | 02:00 | |
wdickers | Good evening aelkner | 02:00 |
---|---|---|
aelkner | Hello. | 02:00 |
aelkner | Feeling much better tonight. | 02:00 |
wdickers | Glad to hear it | 02:01 |
wdickers | And sorry about all my references to saturday, I forgot the meeting was next saturday | 02:01 |
aelkner | No prob. | 02:01 |
aelkner | Did you read Tom's email? | 02:01 |
wdickers | yes | 02:02 |
aelkner | I'm not crazy about it. It seems more complicated than it needs to be. | 02:03 |
wdickers | I was wondering. If the 'hook' in schooltool must alert the cron job to wake up the agent, why couldn't we pass the student data or whatever to the cron job as an argument? | 02:04 |
aelkner | Ok. So you know, cron jobs are unix-level things. | 02:04 |
aelkner | The are set up by the admin. | 02:04 |
aelkner | They start processes by a schedule. | 02:05 |
aelkner | So I could say "start this process (with these args) every ten minutes" | 02:05 |
aelkner | What that means is that it is not hooked up with anything else (which is nice). | 02:05 |
aelkner | What Tom suggests is that the agent wakes up every ten minutes (via the cron job) and does its thing. | 02:06 |
aelkner | Is that clear? | 02:06 |
wdickers | ah, yes it is clear. Then the hook in schooltool has nothing to do with the cron job | 02:07 |
aelkner | Correct. | 02:07 |
aelkner | BTW, I have no porb with using cron jobs for now. They don't complicate things. | 02:07 |
aelkner | My problem is with all of this message passing. It doesn't need to be so complicated. | 02:08 |
aelkner | Wouldn't it be nicer if the agent did all of the work with xml messages, and schooltool itself did none. | 02:08 |
aelkner | ? | 02:08 |
aelkner | It's called encapsulation. | 02:10 |
wdickers | yes, but how do we store the schooltool information in the ZODB? | 02:10 |
aelkner | SchoolTool is built on a zodb. | 02:11 |
aelkner | Do you mean what form? | 02:11 |
wdickers | I mean how can we store the queued messages for the agent, changes to schooltool | 02:11 |
aelkner | This is where I believe the agent is responsible. | 02:11 |
aelkner | Schooltool just needs a way to tell the agent that something needs to be shared, say a new student. | 02:12 |
aelkner | The agent can find the student in the db and build the messages for the ZIS. | 02:12 |
aelkner | This is how I would do it. | 02:13 |
wdickers | right. so schooltool will just say "Bob/studentID has been added". And how is that message to be delivered to the agent? | 02:13 |
aelkner | Good question. | 02:13 |
aelkner | WE need to think about the hooking mechanism. | 02:14 |
aelkner | There are two things to consider: | 02:14 |
aelkner | 1) How do we hook in schooltool, ie, how do we do a piece of work when a user hits the add button. | 02:15 |
aelkner | 2) Where do we put the message you so aptly describe above? "chesty" off the root would work. | 02:15 |
aelkner | So if the agent finds an empty chesty folder, there's nothing to do. | 02:16 |
aelkner | Part 1) is where we would really need to understand schooltool. | 02:16 |
aelkner | Unfortunately, I don't yet. | 02:16 |
aelkner | But, we can get there with time. | 02:16 |
wdickers | Well the first part seems easy enough. When the user adds a person, they click a button, that button calls a python method in the view class that does all the dirty work of adding the student with the proper information. All we have to do is add some code in that method | 02:17 |
wdickers | But I'll go check the schooltool source code to make sure that's how it works | 02:17 |
aelkner | Obviously you have more experience with this than I. That will be handy. | 02:17 |
aelkner | Be right back. | 02:21 |
aelkner | I'm back. | 02:26 |
aelkner | Where are you looking currently? | 02:26 |
wdickers | Well I finally managed to check out a cando instance, which has schooltool in it. Remind me to ask Jeff to install bzr on maddog | 02:27 |
aelkner | Send him an email now. He'll get around to it. | 02:28 |
aelkner | When you are ready, help me find where in the source tree you would look. | 02:29 |
aelkner | There's so much there that I can't understand yet. | 02:29 |
wdickers | SchoolTool/src/schooltool/person | 02:31 |
aelkner | Does ~/cando/SchoolTool/src/schooltool/person seem like the right dir? | 02:31 |
wdickers | yup | 02:31 |
aelkner | configure.zcml for starters? | 02:31 |
wdickers | yeah, but I'm not sure if the add page is actually specified in this package | 02:32 |
aelkner | This is where I get confused real quick. First of all there now docs to tell one what does what in this file. | 02:34 |
aelkner | I guess if you're fluent in zope3, you don't em maybe? | 02:35 |
aelkner | need then, I meant to say | 02:36 |
wdickers | I found it. In SchoolTool/src/schooltool/demographics/browser/personform.py | 02:36 |
aelkner | need them. | 02:36 |
aelkner | I stink at typing. | 02:36 |
aelkner | I'm going there. | 02:36 |
wdickers | wait, I don't think that's it either. Jeez, I may have to find it later | 02:38 |
aelkner | I need to study schooltool badly. | 02:45 |
aelkner | Now that I'm moved, I will have more time to do so. | 02:45 |
aelkner | Let me ask you something: | 02:45 |
aelkner | How long has it been since you first laid eyes on schooltool's source? | 02:46 |
wdickers | Hmm, I'd have to say about 5 months. Though I definitely haven't been working through it for much of that time | 02:46 |
aelkner | What percentage of it do you feel you understand? | 02:47 |
wdickers | I'm pretty comfortable with it if I turn my focus on understanding. Why do you ask? | 02:50 |
aelkner | Just trying to get a feel for the learning curve. | 02:50 |
aelkner | Could I reach you by phone presently? | 02:53 |
wdickers | yes, 703 969 5580 just hold on one moment | 02:53 |
aelkner | Is that your house or cell? | 02:54 |
wdickers | cell | 02:55 |
wdickers | okay, you can call now | 02:56 |
*** wdickers has quit IRC | 03:07 | |
*** wrobel has quit IRC | 03:14 | |
*** aelkner has quit IRC | 03:19 | |
*** jfroche has joined #schooltool | 14:08 | |
*** jfroche has quit IRC | 14:58 | |
*** ignas has joined #schooltool | 16:38 | |
*** srichter has quit IRC | 18:19 | |
*** srichter has joined #schooltool | 22:24 | |
*** srichter has quit IRC | 22:32 | |
*** ignas has quit IRC | 23:56 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!