*** didymo has quit IRC | 00:29 | |
*** didymo has joined #schooltool | 00:49 | |
*** jinty has quit IRC | 01:04 | |
*** srichter has joined #schooltool | 01:34 | |
*** ignas has joined #schooltool | 02:20 | |
*** vidasp has quit IRC | 02:41 | |
*** th1a has joined #schooltool | 04:24 | |
*** ignas has quit IRC | 04:35 | |
*** pcardune has joined #schooltool | 06:02 | |
pcardune | srichter: you wouldn't happen to actually be up this late would you? | 06:06 |
---|---|---|
th1a | pcardune: I'm up, but probably less useful to you. | 06:07 |
pcardune | do you know about Zope's authentication system and what the simplest possible way to authenticate users for an application is? | 06:07 |
th1a | I was right, I'm not useful. | 06:09 |
pcardune | I was hoping for a fluke myself | 06:09 |
pcardune | th1a: what is the deal with the dashboard package? | 06:54 |
th1a | Dashboard package? | 06:54 |
th1a | Package? | 06:54 |
pcardune | schooltool/src/dashboard | 06:54 |
pcardune | module | 06:54 |
th1a | Well, I didn't know it would be getting its own package already. | 06:55 |
th1a | Basically, we need a page that has a person's pending workflow items and other current events. | 06:56 |
pcardune | well, there isn't much in there, I was just wondering what your plans were for it | 06:56 |
th1a | Instead of just a calendar when you log in. | 06:56 |
pcardune | that sounds like a really great thing to have | 06:57 |
th1a | Necessary. | 06:57 |
th1a | OK, I'm going to bed. | 06:58 |
th1a | Good night. | 06:58 |
pcardune | goodnight | 06:59 |
*** pcardune has quit IRC | 07:00 | |
*** auxesis has joined #schooltool | 08:47 | |
*** vidasp has joined #schooltool | 09:22 | |
*** jinty has joined #schooltool | 10:19 | |
povbot | /svn/commits: * jinty committed revision 5795: | 11:01 |
povbot | /svn/commits: schooltool depends on optionstorage. wow, this build tarball <-> fix dependencies cycle is getting old fast, maybe there is a better way. | 11:01 |
povbot | /svn/commits: * jinty committed revision 5796: | 11:36 |
povbot | /svn/commits: Allow optionstorage into the minimal tarball. | 11:36 |
*** vidasp has quit IRC | 12:01 | |
*** Aiste has quit IRC | 12:08 | |
*** mgedmin has joined #schooltool | 12:32 | |
*** Aiste has joined #schooltool | 12:32 | |
*** povbot has joined #schooltool | 13:07 | |
*** mgedmin has quit IRC | 13:43 | |
srichter | th1a: I put the dashboard package there a while ago to check out the feasibility of using viewlets to accomplish it | 13:44 |
*** ignas has quit IRC | 14:15 | |
*** didymo has quit IRC | 14:25 | |
*** thisfred has joined #schooltool | 15:10 | |
th1a | srichter. I see. | 15:11 |
th1a | srichter: Why do we need to cache commendations? | 15:12 |
srichter | where? | 15:20 |
srichter | cache commenfations? | 15:20 |
tiredbones | th1a, I was just reading Martijn latest email, when realize I did not understand some terms. Terms like, | 15:22 |
tiredbones | section temporal and group. Do you have these deffinition some place? | 15:23 |
tiredbones | correction, definition | 15:25 |
srichter | There is a glossary, but it seems broken | 15:25 |
th1a | Just noticed that myself. | 15:25 |
th1a | Damn. | 15:25 |
srichter | course - example: Algebra 1 | 15:26 |
srichter | section - A specific meeting of the course: Algebra 1 - Section 1 (meets every day at 8:00) | 15:26 |
srichter | group - A group of people | 15:26 |
srichter | the argument is that sections change every year (maybe multiple times), while courses and groups are fairly static | 15:27 |
tiredbones | another way of looking at section is a class room and students change the make-up of the class room every school year. | 15:30 |
tiredbones | How do you define temporal? | 15:33 |
th1a | Relating to time. | 15:33 |
*** mgedmin has joined #schooltool | 15:34 | |
tiredbones | Does it mean a span of time? | 15:34 |
srichter | no | 15:34 |
th1a | Groups change but don't keep their history or have strict processes about changing. | 15:34 |
srichter | it just fluctuates/changes over time | 15:34 |
tiredbones | th1a, could you explain what you mean by, "groups change but don't keep their history". | 15:38 |
th1a | Right now, in SchoolTool I can create a group, add people to it, delete it, and then it is like the whole thing never happened. | 15:38 |
th1a | Sections are created and go through a life cycle and then become inactive. | 15:39 |
th1a | But they hang around basically forever. | 15:39 |
th1a | Or at the beginning of a new basketball season, I just remove the old members from the group and add new ones in. | 15:40 |
th1a | I don't need to do "Basketball Team 2006." | 15:40 |
th1a | I just have "Basketball Team." | 15:40 |
*** ignas has joined #schooltool | 15:41 | |
tiredbones | Do you expect to have the link to these term today? | 15:41 |
th1a | tiredbones: I really don't know how long it might take to figure out what is wrong with Plone. | 15:42 |
*** mgedmin has quit IRC | 15:45 | |
th1a | srichter: I'm trying to see if I can strip the commendations package down even more for a screencast and in commendations.py we have a "cacheCommendations" function. I don't remember why. | 15:49 |
th1a | It is an event subscriber. | 15:51 |
srichter | oh, I know why | 15:52 |
srichter | we want an efficient way of getting to all commendations | 15:52 |
srichter | caching them in a school-wide place is a poor-man's catalog/index :-) | 15:53 |
th1a | So it isn't really necessary for the simplest possible demo. | 15:53 |
th1a | I don't mind it in the version in the repository, but it isn't something I'd want in a screencast. | 15:54 |
srichter | right | 16:04 |
srichter | I think if you can do step 1-3 it will be sufficient | 16:04 |
th1a | I'm going to see how many lines I can cut this down to. | 16:04 |
*** vidasp has quit IRC | 16:10 | |
*** gintas has joined #schooltool | 16:30 | |
*** gintas has quit IRC | 16:40 | |
*** gintas has joined #schooltool | 16:40 | |
*** vidasp has joined #schooltool | 16:42 | |
*** mgedmin has joined #schooltool | 16:49 | |
th1a | srichter: What do we get for using widgets in commendation_add? Is there a simpler way to do this? | 16:56 |
srichter | I am just overriding some of the default form template | 16:57 |
srichter | oh I know why | 16:57 |
srichter | because we cannot have a typical add form | 16:57 |
srichter | since we decided against a ++namespace++ | 16:58 |
faassen | srichter: question.. | 17:10 |
faassen | I find this pattern in schooltool that's quite nice. | 17:10 |
faassen | and that looks like I'll need quite a bit more for demographics | 17:10 |
faassen | it's like this: | 17:10 |
faassen | class Foo(Persistent, Contained): | 17:10 |
faassen | implements(interfaces.IFoo) | 17:10 |
faassen | def getFoo(context): | 17:10 |
faassen | annotations = IAnnotations(context) | 17:10 |
faassen | try: | 17:10 |
faassen | return annotations[FOO_KEY] | 17:10 |
faassen | except KeyError: | 17:10 |
faassen | foo = Foo() | 17:10 |
faassen | annotations[FOO_KEY] = foo | 17:10 |
faassen | # to please security... | 17:10 |
faassen | zope.app.container.contained.contained( | 17:10 |
faassen | foo, context, 'foo') | 17:10 |
faassen | return name_info | 17:10 |
faassen | 17:11 | |
faassen | # Convention to make adapter introspectable | 17:11 |
faassen | getFoo.factory = Foo | 17:11 |
faassen | i.e. we have a way to use a clean Foo as the annotations by hooking them up with adapters. | 17:11 |
faassen | but this looks like something that could be actually a zcml directive. | 17:11 |
faassen | what's the zope.app.container.contained bit for? | 17:11 |
faassen | is the motivation to make security work, or something else, like traversing? | 17:11 |
srichter | you have to locate the persistent object | 17:11 |
faassen | yes, but why in this particular case? | 17:12 |
faassen | please the security system of Zope 3? | 17:12 |
srichter | basically, if it does nto have a parent, security cannot work | 17:12 |
faassen | right. | 17:12 |
srichter | yep | 17:12 |
faassen | that's what I thought, just wanted to confirm it. | 17:12 |
faassen | it's not used to traverse to or something like that. | 17:12 |
srichter | no | 17:12 |
faassen | just security pleasing. | 17:12 |
faassen | I noticed I had to resort to stuff like that throughout the document library too. | 17:12 |
srichter | the name is for traversing pleasure *sometimes* | 17:12 |
faassen | it's due to the basically acquisition based z3 security | 17:12 |
faassen | anyway, this would make a good zcml statement, so I don't repeat my code. | 17:12 |
srichter | yes, I agree | 17:13 |
faassen | <zope:annotation for="IBar" factory="something.Foo" /> | 17:13 |
faassen | looks like it'd dot he trick. | 17:13 |
srichter | Ohilipp would beat you now, but I agree :-) | 17:13 |
srichter | I think for now we could put this in a schooltool namespoace | 17:13 |
faassen | well, Philipp can make me want to repeat myself 10 lines all over the map all he likes. :) | 17:13 |
faassen | okay. | 17:14 |
srichter | SchoolTool has been reluctant of defining new directives | 17:14 |
faassen | anyway, I can make it a new directive, probably won't get to it today. | 17:14 |
srichter | but for no particular reason | 17:14 |
faassen | it's just I wanted to make sure I understood everything before I proposed it to z3-dev. | 17:14 |
srichter | I think a lot of the School customization will warrant new directives anyways | 17:14 |
faassen | hm, I am not sure I see that yet but I may eventually. | 17:14 |
srichter | well, it is one way of doing high-level customization | 17:16 |
srichter | for example: <schooltool:demographics schema="stives.interfaces.IStIvesDemographics" /> | 17:16 |
faassen | yeah, perhaps. | 17:17 |
srichter | I have not thought hard about it | 17:17 |
faassen | you'd almost want a kind of skin concept on the code layer actually. | 17:17 |
srichter | right, I agree | 17:17 |
faassen | and this also begs local customization. | 17:17 |
faassen | like, if I have a single schooltool that's hosting both StIves and HTH | 17:17 |
faassen | I'd like to be able to run both at the same time. | 17:17 |
srichter | I think that the new CA work Jim is doing will help us out big time | 17:17 |
faassen | yeah, that'd be cool. | 17:18 |
faassen | anyway, mail to z3 dev sent on this. | 17:18 |
srichter | then you can define multiple site configurations via ZCML and just say which one you want to have for your local site | 17:18 |
srichter | cool | 17:18 |
srichter | I'll respond | 17:18 |
faassen | on the annotations bit, that is. | 17:19 |
faassen | yeah, the site config with ZCML sounds good. | 17:19 |
faassen | that's something I also longed for during documentlibrary development. | 17:19 |
faassen | I already cracked my skull over that one dreadful sprint before EuroPython 2003. | 17:19 |
faassen | when Jim suggested (far away in the US :)..that I implement this simple thing, a local role. :) | 17:20 |
faassen | i.e. a way to register local roles using the system as it was then. | 17:20 |
faassen | and I got very grumpy and Jim said stop whining. :) | 17:20 |
srichter | he he | 17:20 |
srichter | I actually remember this IRC chat | 17:20 |
faassen | :) | 17:20 |
faassen | I think that almost deserves one of those famous "Martijn is right" posts by Jim. :) | 17:20 |
srichter | well, has become much easier since then to do local components | 17:21 |
faassen | yeah. | 17:21 |
faassen | thanks to your work, and now Jim's. | 17:21 |
faassen | I was thinking along the lines of simpler ways to override things, but Jim put the requirement bar really high at the time with registration stacks and all. | 17:22 |
srichter | I'll need to bug Jim to see when he will get the new CA stuff done, so I can write a proposal for the ZCML stuff | 17:22 |
srichter | right | 17:22 |
srichter | I never understood the old way really except for a few days when I was ripping it out | 17:22 |
* faassen grins. | 17:22 | |
faassen | I dug around the code going through 50 different bits for days. | 17:23 |
faassen | the PyPy sprint was going on in the next room and that'd have been significantly easier. :) | 17:23 |
srichter | I doubt that! :-) | 17:24 |
faassen | really! :) | 17:24 |
srichter | he he | 17:25 |
srichter | OT: did you get a chance to chat with Jim? | 17:25 |
faassen | srichter: no, I mailed him proposing it the day before yesterday I tihnk, but he didn't mail me back | 17:26 |
faassen | I hope that doesn't mean he's seriously mad at me. :) | 17:26 |
srichter | he has a pretty thick skin and will get over it, if he is :-) | 17:27 |
faassen | sure. :) | 17:29 |
* jinty just figures out that c =+ 1 doesn't mean c += 1 the hard way | 17:57 | |
*** vidasp has quit IRC | 18:00 | |
*** jinty has quit IRC | 18:17 | |
*** jinty has joined #schooltool | 18:32 | |
*** Aiste has quit IRC | 18:33 | |
*** dobee has joined #schooltool | 18:58 | |
tiredbones | srichter, I'm going to pose my question on this irc that relates to what I asked on z3-dev. I think my error has to do with i18n. Specifically with my configure.zcml that is located in my browser directory. I looked at the one you have in your book on page 105 and I don't see where you add i18n stuff. I get the warnings when i start zope and it point to my configure.zcml. Is there something different since you wrote your book? | 19:03 |
srichter | well, my browser/configure.zcml is linked from configure.zcml | 19:04 |
srichter | the <configure> element must specify i18n_domain for the warnings to go away | 19:05 |
tiredbones | hows the link established? | 19:06 |
srichter | <include =".browser" /> | 19:06 |
tiredbones | I'm missing it! I looked at both configure.zcml and I don't see <include =".browser" />. | 19:09 |
srichter | http://svn.zope.org/book/trunk/messageboard/step13/configure.zcml?rev=27355&view=auto | 19:12 |
srichter | see second to last line | 19:12 |
srichter | also note the i18n_domain attribute in the <configure> element | 19:13 |
*** Aiste has joined #schooltool | 19:14 | |
*** tiredbones has quit IRC | 19:34 | |
*** jinty has quit IRC | 19:35 | |
*** jinty has joined #schooltool | 19:36 | |
*** ignas has quit IRC | 19:49 | |
*** jinty has quit IRC | 19:50 | |
*** Gnuget has joined #schooltool | 19:57 | |
Gnuget | Hi! | 19:57 |
srichter | hi | 19:59 |
*** tiredbones has joined #schooltool | 20:27 | |
tiredbones | did freenode go down? | 20:28 |
*** faassen has quit IRC | 20:33 | |
srichter | not on me | 20:42 |
*** Gnuget has quit IRC | 20:52 | |
*** thisfred has left #schooltool | 20:59 | |
*** ignas has joined #schooltool | 21:36 | |
*** didymo has joined #schooltool | 22:03 | |
*** dobee has quit IRC | 22:11 | |
*** ignas has quit IRC | 22:27 | |
*** mgedmin has quit IRC | 23:16 | |
*** didymo has quit IRC | 23:28 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!