*** mexiKON has joined #zope3-dev | 00:11 | |
*** mexiKON has quit IRC | 00:13 | |
*** gumpa has quit IRC | 00:16 | |
*** marcin_ant has joined #zope3-dev | 00:24 | |
*** natea has joined #zope3-dev | 00:25 | |
*** philiKON_ has joined #zope3-dev | 00:30 | |
*** philiKON has quit IRC | 00:39 | |
*** J1m has quit IRC | 01:01 | |
*** whitmo has joined #zope3-dev | 01:07 | |
*** whit has quit IRC | 01:08 | |
*** whitmo is now known as whit | 01:09 | |
*** runyaga is now known as run|Away | 01:09 | |
*** dobee has quit IRC | 01:13 | |
*** ignas has joined #zope3-dev | 01:15 | |
*** HakTom has quit IRC | 01:25 | |
*** RaFromBRC is now known as RaFromBRC|lunch | 01:27 | |
*** reco has quit IRC | 01:28 | |
*** febb has joined #zope3-dev | 01:37 | |
*** yota has quit IRC | 01:48 | |
*** ignas has quit IRC | 01:48 | |
*** reco has joined #zope3-dev | 01:49 | |
*** hazmat has joined #zope3-dev | 01:51 | |
*** ChanServ sets mode: +o hazmat | 01:51 | |
*** natea_ has joined #zope3-dev | 01:55 | |
*** RaFromBRC|lunch is now known as RaFromBRC | 01:59 | |
*** natea has quit IRC | 02:01 | |
*** b_52Free has quit IRC | 02:16 | |
*** philiKON_ has quit IRC | 02:17 | |
*** b_52Free has joined #zope3-dev | 02:17 | |
*** b_52Free has quit IRC | 02:37 | |
*** b_52Free has joined #zope3-dev | 02:38 | |
*** wrobel has quit IRC | 03:13 | |
*** roym has quit IRC | 03:25 | |
*** deo has quit IRC | 03:31 | |
*** natea_ has quit IRC | 03:38 | |
*** niemeyer has quit IRC | 03:41 | |
*** natea has joined #zope3-dev | 03:49 | |
*** tarek has quit IRC | 04:00 | |
*** projekt01 has joined #zope3-dev | 04:05 | |
*** natea_ has joined #zope3-dev | 04:08 | |
*** natea has quit IRC | 04:13 | |
*** stub has joined #zope3-dev | 04:30 | |
*** RaFromBRC has quit IRC | 05:10 | |
*** hazmat has quit IRC | 05:36 | |
*** dokai has quit IRC | 06:05 | |
*** dokai has joined #zope3-dev | 06:07 | |
*** runyaga_ has joined #zope3-dev | 06:41 | |
*** run|Away has quit IRC | 06:53 | |
*** baijum has joined #zope3-dev | 07:12 | |
*** ktwilight has joined #zope3-dev | 07:20 | |
*** alecm has quit IRC | 07:26 | |
*** eins has joined #zope3-dev | 08:19 | |
*** reco has quit IRC | 08:36 | |
*** whit has quit IRC | 08:40 | |
*** dobee has joined #zope3-dev | 08:50 | |
*** philiKON has joined #zope3-dev | 08:58 | |
*** dlk has joined #zope3-dev | 09:14 | |
*** hdima has joined #zope3-dev | 09:15 | |
*** opetznick has joined #zope3-dev | 09:25 | |
*** wrobel has joined #zope3-dev | 09:26 | |
*** batlogg has joined #zope3-dev | 09:26 | |
romanofski | moin | 09:34 |
---|---|---|
*** d2m has quit IRC | 09:37 | |
*** d2m has joined #zope3-dev | 09:43 | |
d2m | http://www.springer.com/east/home?SGWID=5-102-22-173705712-0 -- looks like they are shipping since yesterday | 09:44 |
*** b_52Free has quit IRC | 09:49 | |
*** b_52Free has joined #zope3-dev | 09:50 | |
*** kobold has joined #zope3-dev | 09:52 | |
*** tarek has joined #zope3-dev | 09:53 | |
*** philiKON has quit IRC | 09:59 | |
*** batlogg is now known as batlogg|meeting | 10:02 | |
*** WebMaven has quit IRC | 10:12 | |
*** jkakar has quit IRC | 10:14 | |
*** ignas has joined #zope3-dev | 10:15 | |
*** HakTom has joined #zope3-dev | 10:24 | |
*** tarek_ has joined #zope3-dev | 10:24 | |
*** harobed has joined #zope3-dev | 10:34 | |
*** tarek has quit IRC | 10:39 | |
*** philiKON has joined #zope3-dev | 10:41 | |
*** ignas has quit IRC | 10:45 | |
*** tarek__ has joined #zope3-dev | 10:47 | |
*** tarek has joined #zope3-dev | 10:56 | |
*** ignas has joined #zope3-dev | 10:59 | |
*** tarek_ has quit IRC | 11:01 | |
*** tarek_ has joined #zope3-dev | 11:01 | |
philiKON | d2m: ah, nice to know | 11:03 |
philiKON | thanks ;) | 11:03 |
*** tarek has quit IRC | 11:05 | |
*** tarek__ has quit IRC | 11:07 | |
*** tarek has joined #zope3-dev | 11:07 | |
*** tarek__ has joined #zope3-dev | 11:14 | |
*** henri_ has joined #zope3-dev | 11:16 | |
*** tarek has quit IRC | 11:20 | |
*** tarek_ has quit IRC | 11:21 | |
*** tarek_ has joined #zope3-dev | 11:31 | |
*** tarek has joined #zope3-dev | 11:34 | |
*** timte has joined #zope3-dev | 11:37 | |
*** tarek_ has quit IRC | 11:39 | |
*** tarek__ has quit IRC | 11:41 | |
*** batlogg|meeting has quit IRC | 11:44 | |
*** jinty has joined #zope3-dev | 11:50 | |
*** tarek_ has joined #zope3-dev | 11:51 | |
*** stub has quit IRC | 11:52 | |
*** tarek has quit IRC | 11:52 | |
*** batlogg has joined #zope3-dev | 11:54 | |
*** dunny has quit IRC | 12:00 | |
*** tarek__ has joined #zope3-dev | 12:19 | |
*** henri_ has left #zope3-dev | 12:21 | |
*** tarek_ has quit IRC | 12:25 | |
*** tarek_ has joined #zope3-dev | 12:29 | |
*** batlogg has quit IRC | 12:43 | |
*** batlogg has joined #zope3-dev | 12:48 | |
*** tarek__ has quit IRC | 12:49 | |
*** alga has joined #zope3-dev | 12:56 | |
*** mgedmin has joined #zope3-dev | 12:57 | |
*** philiKON has quit IRC | 13:03 | |
*** philiKON has joined #zope3-dev | 13:05 | |
*** alga has quit IRC | 13:06 | |
*** niemeyer has joined #zope3-dev | 13:13 | |
*** tonico|away is now known as tonico | 13:21 | |
*** stub has joined #zope3-dev | 13:22 | |
*** dobee has quit IRC | 13:34 | |
*** tarek__ has joined #zope3-dev | 13:34 | |
*** mgedmin has quit IRC | 13:34 | |
*** tarek_ has quit IRC | 13:48 | |
*** alga has joined #zope3-dev | 13:50 | |
*** rocky|away is now known as rocky | 13:51 | |
*** hdima has quit IRC | 13:57 | |
*** dobee has joined #zope3-dev | 14:04 | |
*** HakTom has quit IRC | 14:07 | |
*** mkerrin has joined #zope3-dev | 14:14 | |
*** philiKON has quit IRC | 14:42 | |
*** faassen has joined #zope3-dev | 14:52 | |
*** J1m has joined #zope3-dev | 15:06 | |
faassen | hey J1m | 15:07 |
*** hdima has joined #zope3-dev | 15:08 | |
*** dlk has left #zope3-dev | 15:14 | |
*** batlogg has quit IRC | 15:14 | |
*** oferw has joined #zope3-dev | 15:16 | |
ignas | faassen: do you know if zc.table sort is preserving the order of the elements being sorted ? I mean if i'll pass a list of objects sorted by their let's say name, and sort the table by group, will people with the same group still be sorted by their name? | 15:18 |
faassen | ignas: I wouldn't know off the top of my head, but I believe that zc.table has something concerning multiple sort columns that does do that. don't know whether it preserves the order of what comes in after sorting. I would guess that would depend on the behavior of python's sort, which I think is stable after python 2.4 | 15:21 |
ignas | is see, thank you | 15:22 |
faassen | or perhaps even python 2.3 | 15:22 |
faassen | don't know, but Tim Peters made it stable at some point. :) | 15:22 |
*** oferw_ has joined #zope3-dev | 15:35 | |
*** stub has quit IRC | 15:40 | |
*** hazmat has joined #zope3-dev | 15:49 | |
*** ChanServ sets mode: +o hazmat | 15:49 | |
*** oferw has quit IRC | 15:52 | |
*** philiKON has joined #zope3-dev | 15:58 | |
*** tarek_ has joined #zope3-dev | 16:02 | |
*** tarek_ has quit IRC | 16:06 | |
*** tarek_ has joined #zope3-dev | 16:07 | |
*** tarek__ has quit IRC | 16:16 | |
*** natea has joined #zope3-dev | 16:19 | |
*** hazmat has quit IRC | 16:19 | |
*** gumpa has joined #zope3-dev | 16:19 | |
*** tarek__ has joined #zope3-dev | 16:21 | |
*** oferw_ has quit IRC | 16:25 | |
*** natea_ has quit IRC | 16:27 | |
*** tarek_ has quit IRC | 16:27 | |
*** Londo_ has quit IRC | 16:28 | |
*** tonico is now known as tonico|away | 16:29 | |
*** eins has quit IRC | 16:32 | |
*** mgedmin has joined #zope3-dev | 16:33 | |
*** whit has joined #zope3-dev | 16:36 | |
*** batlogg has joined #zope3-dev | 16:57 | |
*** batlogg is now known as batlogg|busy | 16:58 | |
*** zagy has quit IRC | 17:16 | |
*** hazmat has joined #zope3-dev | 17:22 | |
*** ChanServ sets mode: +o hazmat | 17:22 | |
*** reco has joined #zope3-dev | 17:40 | |
*** hdima has quit IRC | 17:41 | |
*** natea has quit IRC | 17:51 | |
*** marcin_ant has quit IRC | 17:57 | |
*** projekt01 has quit IRC | 17:59 | |
*** batlogg|busy has quit IRC | 18:05 | |
*** dobee has quit IRC | 18:22 | |
*** opetznick has quit IRC | 18:24 | |
*** jinty has quit IRC | 18:24 | |
*** hazmat has quit IRC | 18:29 | |
*** WebMaven has joined #zope3-dev | 18:35 | |
*** kobold has quit IRC | 18:36 | |
*** alecm has joined #zope3-dev | 18:37 | |
ignas | is the order of subscribers defined anywhere, or you can't rely on subscribers being called in some particular order? | 18:56 |
ignas | like - the order they were registered in zcml | 18:56 |
mgedmin | it is a very very very good idea to not rely on any particular order | 18:57 |
ignas | just like i though, thank you | 18:57 |
mgedmin | s/though/thought/? | 18:57 |
ignas | i have typed too many extra t's today already so i am saving on them now ;) | 18:58 |
ignas | faassen: ayt ? | 18:58 |
*** zagy has joined #zope3-dev | 18:59 | |
faassen | ignas: yup. | 19:00 |
ignas | faassen: do you remember the local utility thing you did to make overriding person factory possible? | 19:00 |
faassen | yes. | 19:00 |
faassen | any problem with it? | 19:01 |
ignas | ignas: maybe you could tell me how it should be used, as i kind of need a custom person factory, yet as it is a subscriber creating a utility ... | 19:01 |
ignas | s/ignas/faassen/ | 19:01 |
faassen | let me look at the code for a minute. | 19:01 |
faassen | looking it up. | 19:02 |
ignas | even if i'll add one more subscriber with "override=true" I still won't be sure whether my factory or the demographics.person factory was used | 19:02 |
*** jfroche has joined #zope3-dev | 19:03 | |
faassen | ah, because of subscriber order? | 19:04 |
ignas | yes | 19:04 |
*** harobed has quit IRC | 19:04 | |
mgedmin | surely you meant to say "I have yped oo many exra t's oday already so I am saving on hem now"? | 19:05 |
ignas | no ha many! | 19:06 |
faassen | ignas: ack, so I guess the current use of override only works by accident. | 19:06 |
ignas | no, not by accident, it works because the default person factory sets override to False for itself, and there is only 1 other person factory | 19:07 |
faassen | ignas: well, if that were called *before* the one, is there anything preventing it except the accident? | 19:07 |
ignas | yes, if you set override to False, and there already is another utility - you just skip the registration step | 19:08 |
ignas | schooltool/src/schooltool/utility/utility.py:62 | 19:08 |
faassen | yes but is there anything preventing the override=True event to be called *after* the original event that sets up the original/ | 19:09 |
* ignas confused | 19:09 | |
faassen | in the core of schooltool, there are 2 events setting up the person factory utility. | 19:09 |
ignas | yes | 19:10 |
faassen | aah, right. | 19:10 |
faassen | if the order were reversed, the first one wouldn't override the second one. | 19:10 |
faassen | okay, then at least I wasn't that stupid. :) | 19:10 |
ignas | you can always admit that you did that intentionally :) | 19:11 |
faassen | I figure I did think of that then. | 19:11 |
*** hazmat has joined #zope3-dev | 19:11 | |
*** ChanServ sets mode: +o hazmat | 19:11 | |
*** mkerrin has quit IRC | 19:11 | |
faassen | but I'm not sure. :) | 19:11 |
faassen | anyway, the whole story of that extendability of course doesn't work after you try extending it once or twice.. | 19:12 |
faassen | there are a number of ways you could go around this. | 19:12 |
ignas | i know, i'll add override2 :D | 19:13 |
ignas | that should keep it working | 19:13 |
faassen | no, in your extension, you could make it hand-triggered. | 19:13 |
faassen | I mean, imagine you have schooltool. | 19:13 |
faassen | and you have installed a whole bundle of demographics packages. | 19:13 |
faassen | one for US, one for NL, etc. | 19:13 |
faassen | then it's up to you to determine which one you want. | 19:13 |
faassen | it cannot be done automatically by the events. | 19:13 |
faassen | though perhaps the scenario would be simply not to hook up their zcml. | 19:14 |
faassen | hm. | 19:14 |
faassen | anyway, one way you could do is by installing them all, and having a button somewhere to install the right one. | 19:14 |
ignas | hmm | 19:14 |
faassen | that would trigger the utility registration. | 19:14 |
faassen | so when you install schooltool, it would ask 'which demographics do you want to use' and gives you a list. | 19:14 |
faassen | and you select the one. | 19:14 |
faassen | that is, that would happen after the schooltool root already exists. | 19:15 |
faassen | that's one way to do this kind of things. it makes for a nice installation user interface and configuration in the ZODB there. | 19:15 |
faassen | the alternative is only to hook up the events you want. | 19:15 |
faassen | right now the schooltool core is installing the person factory. | 19:15 |
faassen | in demographics. | 19:15 |
faassen | perhaps it shouldn't be doing this. instead, that bit should move to an extension. | 19:15 |
faassen | which you can then hook up with ZCML or not, what you want. | 19:15 |
faassen | in your alternative extension you'd hook up your own event. | 19:16 |
faassen | since they'd only be overriding the core, the current behavior would work. | 19:16 |
faassen | so did you comprehend the two scenarios I sketched? one UI, one event based. | 19:16 |
ignas | as for the UI based - the problem is that on debian questions are asked before ZODB even exists, before Zope CA gets set up too ... so i can't get a list of registered PersonFactories in there yet ... | 19:20 |
ignas | i would like to either use ZCML directly for that ... i mean like you set the exact factory only once in some top level zcml file ... | 19:20 |
faassen | yes. | 19:21 |
faassen | that's the second scenario. | 19:21 |
faassen | you'd split out the subscribers currently in the core into their own extension package. | 19:21 |
faassen | and you'd not install this package and instead hook up your own. | 19:21 |
ignas | well, i dpn't need any subscribers - i'd make them identical utilities and you'd register only one of them | 19:22 |
ignas | or named utilities, and you'd only set the name of the one you need ... | 19:22 |
faassen | oh, you could make them global utilities too. | 19:22 |
faassen | I don't know what you mean with identical utilities. | 19:22 |
faassen | but yeah, you could make this a global utility instead. the utility/subscriber stuff makes more sense for the catalog installation which has to be local. | 19:22 |
ignas | i mean - factories in python code, but not register them in zcml | 19:22 |
faassen | actually if you made them global utilities you can probably also make it work with ZCML overrides. | 19:23 |
ignas | probably yes ... | 19:23 |
ignas | i'll see which way it works out best | 19:23 |
faassen | I used the same pattern for this one, making it local. | 19:23 |
faassen | but this factory can of course be global just fine. | 19:23 |
*** ktwilight_ has joined #zope3-dev | 19:23 | |
faassen | especially if you don't have ZODB-based configuration. | 19:24 |
faassen | I could imagine after first logging into schooltool it'd ask you various things. | 19:24 |
faassen | I thikn that would work with debian, it's you're not using debian's configuration machinery. | 19:24 |
faassen | the advantage would be it'd work outside debian too. :) | 19:24 |
faassen | the advantage of local subscribers for the factory is that you could have multiple schooltool roots installed into one zope 3 with different demographics setups. since you don't do this with schooltool (though I heard you might want to one day), it might not matter. | 19:25 |
faassen | I mean, the advantage of local factories (installed by the subscribers) | 19:25 |
ignas | i know | 19:26 |
ignas | with multiple schools in the same immage this would be better left to some UI for adding a new school object though ... | 19:26 |
faassen | yes. | 19:26 |
faassen | possibly. | 19:26 |
faassen | probably. :) | 19:26 |
faassen | the subscribers are useful for utilities that are more or less plumbing, like the intids. | 19:27 |
faassen | for the catalog indexes and the factory, it's more configuration-driven what happens. | 19:27 |
faassen | and that'd make more sense in some kind of setup screen somewhere, not with subscribers. | 19:27 |
faassen | anyway, this is why they say pluggable APIs don't work unless you write a couple of example plugins first. :) | 19:28 |
faassen | we were veering back and forth on whether this needed to be pluggable or not back then. | 19:29 |
ignas | indeed | 19:29 |
*** ktwilight has quit IRC | 19:31 | |
ignas | faassen: one more question, it seems that in the transaction in which schooltool application is created and "notify(ObjectAddedEvent(app))" is signalled, person factory utility is not available yet ... | 19:39 |
ignas | maybe you know why ? | 19:39 |
faassen | ignas: possibly because your site is set up correctly yet? | 19:43 |
faassen | ignas: I mean, isn't set up correctly yet. | 19:43 |
faassen | ignas: otherwise I wouldn't know. | 19:43 |
ignas | i see | 19:43 |
faassen | ignas: but you could try doing an experimental getSite() in the code where it isn't there yet. | 19:43 |
faassen | ignas: and see what you get. | 19:43 |
ignas | it makes Manager user the single one user that is not indexed by the catalog :) | 19:44 |
faassen | hm. | 19:44 |
ignas | superman is invisible to your Catalog rays | 19:44 |
ignas | :) | 19:44 |
* faassen grins. | 19:44 | |
faassen | I remember having to struggle somewhat with schooltool's special setup procedure. | 19:44 |
*** RaFromBRC has joined #zope3-dev | 19:45 | |
faassen | anyway, I hope you can use sitonite to weaken superman. :) | 19:45 |
*** jkakar has joined #zope3-dev | 19:53 | |
ignas | faassen: found the problem, the site is not set in there so i must do it manually around the place where the manager user is created (like the code that set's up utilities does) | 19:54 |
*** RaFromBRC is now known as RaFromBRC|mtg | 19:56 | |
ignas | faassen: thanks for the tech support :) | 20:06 |
*** reco_ has joined #zope3-dev | 20:17 | |
*** ksmith99 has joined #zope3-dev | 20:17 | |
faassen | ignas: no problem. | 20:18 |
*** kobold has joined #zope3-dev | 20:23 | |
*** reco has quit IRC | 20:33 | |
*** reco_ has quit IRC | 20:33 | |
*** reco has joined #zope3-dev | 20:34 | |
*** gumpa has quit IRC | 21:03 | |
*** febb has quit IRC | 21:03 | |
*** RaFromBRC|mtg is now known as RaFromBRC | 21:06 | |
*** dunny has joined #zope3-dev | 21:08 | |
*** alga has quit IRC | 21:13 | |
*** yota has joined #zope3-dev | 21:22 | |
*** deo has joined #zope3-dev | 21:24 | |
*** dunny has quit IRC | 21:28 | |
*** runyaga has joined #zope3-dev | 21:32 | |
*** tarek_ has joined #zope3-dev | 21:33 | |
*** tarek__ has quit IRC | 21:38 | |
*** oferw has joined #zope3-dev | 21:40 | |
*** kobold has left #zope3-dev | 21:41 | |
*** dlk has joined #zope3-dev | 21:42 | |
*** dlk has left #zope3-dev | 21:42 | |
*** MrTopf has joined #zope3-dev | 22:08 | |
*** J1m_ has joined #zope3-dev | 22:20 | |
*** povbot` has joined #zope3-dev | 22:32 | |
*** dunny has joined #zope3-dev | 22:33 | |
*** povbot has quit IRC | 22:36 | |
*** J1m_ has quit IRC | 22:36 | |
*** hazmat has quit IRC | 22:39 | |
*** runyaga has quit IRC | 22:47 | |
*** oferw_ has joined #zope3-dev | 22:56 | |
*** dunny has quit IRC | 23:00 | |
*** rocky|away is now known as rocky | 23:00 | |
*** oferw_ has quit IRC | 23:04 | |
*** mgedmin has quit IRC | 23:09 | |
*** dunny has joined #zope3-dev | 23:10 | |
*** oferw has quit IRC | 23:17 | |
*** zagy has quit IRC | 23:20 | |
*** hazmat has joined #zope3-dev | 23:25 | |
*** ChanServ sets mode: +o hazmat | 23:25 | |
*** natea_ has joined #zope3-dev | 23:27 | |
*** timte has quit IRC | 23:29 | |
*** timte has joined #zope3-dev | 23:33 | |
*** gumpa has joined #zope3-dev | 23:37 | |
*** Londo has joined #zope3-dev | 23:54 | |
*** HakTom has joined #zope3-dev | 23:58 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!