| *** menesis has quit IRC | 00:00 | |
| malthe | tlotze: I thought about adding concatenation, hashing (twice: once to check for duplicity, once for caching purposes) to zc.resourcelibrary; I looked at z3c.resourcecollector (recently developed at the snow sprint) and I'm not sure it's on the right track. | 00:01 |
|---|---|---|
| tlotze | Hm, I'm afraid I'm not deeply enough into that to give you an answer off the top of my head. I can put it on my list of things to look at, though. It's a long list, BTW ;o) | 00:03 |
| malthe | right; actually I was going to just do it myself | 00:04 |
| malthe | unless you have the time .... | 00:04 |
| tlotze | Hm, if I may suggest something... just go ahead :o) | 00:04 |
| malthe | hehe | 00:05 |
| malthe | tlotze: but I'd like to not plug in to the publisher | 00:05 |
| tlotze | I mean, it's not as if I was some sort of champion of that package or something. I haven't even done much on it, some check-ins some time ago probably... | 00:05 |
| malthe | gotcha | 00:06 |
| tlotze | OK, plugging into the publisher sounds intriguing. Can you support that with some code? Maybe I see something... | 00:07 |
| malthe | it's there | 00:07 |
| malthe | it's nasty | 00:07 |
| ignas | how do I properly remove + unregister a local utility? | 00:07 |
| tlotze | Ah, so you want to plug out of it, so to speak | 00:07 |
| malthe | yes | 00:08 |
| malthe | it should really be conditional I think | 00:08 |
| malthe | if you do proper 2-phase rendering, it can be done correctly with a content provider. | 00:08 |
| tlotze | OK, I'll take a look at it tomorrow morning on the train. Too late for me today. | 00:08 |
| malthe | appreciate it | 00:09 |
| tlotze | np | 00:09 |
| ignas | J1m: are you there? | 00:12 |
| *** nathany has quit IRC | 00:16 | |
| *** [1]Doc_Dan has joined #zope3-dev | 00:18 | |
| *** alga has quit IRC | 00:19 | |
| *** rmarianski_ has joined #zope3-dev | 00:24 | |
| *** rmarianski has quit IRC | 00:24 | |
| *** [2]Doc_Dan has joined #zope3-dev | 00:30 | |
| *** Doc_Dan has quit IRC | 00:33 | |
| *** [2]Doc_Dan is now known as Doc_Dan | 00:33 | |
| *** lucielejard has quit IRC | 00:33 | |
| ignas | I am trying to unregister a local utility that is a Catalog | 00:33 |
| ignas | which leads to a could not find IIntId utility error | 00:34 |
| ignas | I have traced it to the attempt to reindex the siteManager object due to an IObjectRemoved event | 00:34 |
| *** jodok has quit IRC | 00:34 | |
| ignas | while reindexing - getAllUtilitiesRegisteredFor(ICatalog) call returns the Catalog that I am trying to remove | 00:35 |
| ignas | even though i have unregistered it and am just trying to 'del' it | 00:35 |
| ignas | naturally a call to getUtility(IIntIds, context=cat) fails, because the catalog in question has no __parent__ anymore | 00:36 |
| ignas | because well - it's in the middle of being removed from the site manager | 00:36 |
| *** alecm has quit IRC | 00:36 | |
| *** alecm has joined #zope3-dev | 00:36 | |
| ignas | so - what might I be doing wrong? and what would be the right way to solve the problem? | 00:36 |
| *** MrTopf has quit IRC | 00:38 | |
| *** dobee has quit IRC | 00:39 | |
| *** [1]Doc_Dan has quit IRC | 00:45 | |
| *** pbugni has quit IRC | 00:46 | |
| *** Doc_Dan has quit IRC | 00:55 | |
| *** tomus has quit IRC | 01:07 | |
| J1m | ignas, ayt? | 01:11 |
| *** ryanbard has quit IRC | 01:13 | |
| *** malthe is now known as malthe|Zzz | 01:13 | |
| *** sp0cksbeard has quit IRC | 01:14 | |
| ignas | J1m: yes | 01:15 |
| J1m | ignas, you are falling victim to over-general subscribers. | 01:15 |
| ignas | i see | 01:16 |
| ignas | it seems that reindexDocSubscriber is registered for everything | 01:16 |
| ignas | except for the INoAutoReindex objects | 01:16 |
| ignas | i have worked around it by setting __parent__ and __name__ of the Catalog to None | 01:16 |
| ignas | to muffle all the events | 01:16 |
| ignas | but I am not 100% sure it is safe to do that | 01:16 |
| ignas | because I don't know what other subscribers are fired when you remove something from the siteManager | 01:17 |
| J1m | It doesn't really matter. | 01:17 |
| J1m | You should remove *this* subscriber and add one that is more selective. | 01:17 |
| J1m | alternatively, you can blacklist some types/classes with INoAutoReindex, which seems very reasonable to me. | 01:18 |
| J1m | The general subscribers are kinda convenient for getting started. | 01:19 |
| ignas | hmm, i guess classes like site manager should be excluded by default, but adding that to either zope.app.catalog or the component registry adds an unnecessary dependency | 01:19 |
| ignas | so i'll probably have to add it to my application | 01:19 |
| ignas | though isn | 01:19 |
| ignas | isn't it better to not register the reindex and index subscribers at all, and allow users of Catalog to register them when they need them | 01:20 |
| J1m | But after a while, you generaly want to be more specific. The INoAutoReindex seems like a nice interim tool. | 01:21 |
| J1m | I don't understand what you are talking about. | 01:21 |
| J1m | In zcml. I think you can just mark classes to exclude with INoAutoReindex. | 01:21 |
| ignas | I understand, but that solves this problem only for me, and I was thinking of a way to solve it to others too. | 01:22 |
| ignas | Without that declaration removal of Catalog is more or less impossible ... | 01:22 |
| J1m | That's the problem, sometimes trying to solve something generally just creates general problems. :) | 01:22 |
| ignas | :) | 01:23 |
| ignas | makes sense :) | 01:23 |
| benji | That's generally the case. ;) | 01:23 |
| ignas | thanks for the solution | 01:23 |
| ignas | i'll just add it next to the catalog zcml include | 01:23 |
| *** danielblackburn has quit IRC | 01:23 | |
| *** ryanbard has joined #zope3-dev | 01:25 | |
| ignas | by the way - maybe you know whether iterating using storage.record_iternext(next_oid) yields objects that have not been "garbage collected" too, or only the accessible ones | 01:25 |
| ignas | i am removing an object in one evolution script and still getting an interface not found error in the next evolution script that traverses through all the objects using record_iternext | 01:26 |
| ignas | even though the interface was stored only on the object that was deleted | 01:27 |
| Theuni | from the top of my head the interface for record_iternext only says `current` objects. it doesn't talk about garbage collection. i guess that your experience is unfortunately congruent. | 01:30 |
| ignas | Theuni: thanks for teaching me a new word ;) | 01:31 |
| *** alecm has quit IRC | 01:31 | |
| ignas | i guess i'll have to remove the interface in the next iteration | 01:34 |
| *** vod has quit IRC | 01:40 | |
| *** vod has joined #zope3-dev | 01:41 | |
| *** ryanbard has quit IRC | 01:42 | |
| *** benji has quit IRC | 01:44 | |
| *** norro has quit IRC | 01:58 | |
| *** alecm has joined #zope3-dev | 01:59 | |
| *** rmarianski_ has quit IRC | 02:00 | |
| *** rmarianski has joined #zope3-dev | 02:01 | |
| *** whit has quit IRC | 02:11 | |
| *** ignas has quit IRC | 02:12 | |
| *** dunny has quit IRC | 02:19 | |
| *** danielblackburn has joined #zope3-dev | 02:32 | |
| *** lucielejard has joined #zope3-dev | 02:32 | |
| *** lucielejard has quit IRC | 02:34 | |
| *** rmarianski_ has joined #zope3-dev | 02:39 | |
| *** rmarianski has quit IRC | 02:39 | |
| *** rmarianski_ has quit IRC | 02:55 | |
| *** greenman has joined #zope3-dev | 03:11 | |
| *** J1m has quit IRC | 03:56 | |
| *** quodt has quit IRC | 04:04 | |
| *** malthe|Zzz has quit IRC | 04:09 | |
| *** reco has quit IRC | 04:11 | |
| *** whit has joined #zope3-dev | 04:25 | |
| *** natea|boston has quit IRC | 04:42 | |
| *** greenman has quit IRC | 04:52 | |
| *** dunny has joined #zope3-dev | 05:02 | |
| *** stub has joined #zope3-dev | 05:21 | |
| *** natea|boston has joined #zope3-dev | 05:32 | |
| *** niemeyer has quit IRC | 05:34 | |
| *** rcrafton has quit IRC | 05:49 | |
| *** whit has quit IRC | 05:53 | |
| *** alecm has quit IRC | 06:01 | |
| *** baijum has joined #zope3-dev | 07:05 | |
| *** dunny has quit IRC | 07:27 | |
| *** baijum has quit IRC | 07:44 | |
| *** d2m has joined #zope3-dev | 07:53 | |
| *** philiKON_ has joined #zope3-dev | 07:58 | |
| *** philiKON has quit IRC | 08:14 | |
| *** afd_ has joined #zope3-dev | 08:20 | |
| *** kursor has joined #zope3-dev | 08:31 | |
| *** dobee has joined #zope3-dev | 08:33 | |
| *** jukart has joined #zope3-dev | 08:43 | |
| *** alecm has joined #zope3-dev | 08:46 | |
| *** greenman has joined #zope3-dev | 08:47 | |
| *** jodok has joined #zope3-dev | 08:56 | |
| *** hdima has joined #zope3-dev | 08:58 | |
| *** sorin has joined #zope3-dev | 09:05 | |
| *** sorin is now known as sorindregan | 09:05 | |
| *** zagy has joined #zope3-dev | 09:05 | |
| *** ccomb has quit IRC | 09:39 | |
| *** afd__ has joined #zope3-dev | 09:52 | |
| *** agroszer has joined #zope3-dev | 10:02 | |
| *** tarek has joined #zope3-dev | 10:02 | |
| *** afd_ has quit IRC | 10:09 | |
| *** kursor has quit IRC | 10:17 | |
| *** pyqwer has joined #zope3-dev | 10:23 | |
| *** jpcw2002 has joined #zope3-dev | 10:25 | |
| *** pelle_ has joined #zope3-dev | 10:35 | |
| *** pelle_ has joined #zope3-dev | 10:36 | |
| *** Aiste has quit IRC | 10:45 | |
| *** MJ has joined #zope3-dev | 10:53 | |
| *** ghendi has joined #zope3-dev | 11:02 | |
| *** vahur has joined #zope3-dev | 11:06 | |
| *** jpcw2002_ has joined #zope3-dev | 11:18 | |
| *** niemeyer has joined #zope3-dev | 11:18 | |
| *** toutpt has joined #zope3-dev | 11:21 | |
| *** Doc_Dan has joined #zope3-dev | 11:22 | |
| *** maurits has joined #zope3-dev | 11:24 | |
| *** jpcw2002 has quit IRC | 11:26 | |
| *** jpcw__ has joined #zope3-dev | 11:35 | |
| *** dunny has joined #zope3-dev | 11:39 | |
| *** jpcw2002_ has quit IRC | 11:47 | |
| *** quodt has joined #zope3-dev | 11:55 | |
| *** jpcw2002 has joined #zope3-dev | 11:56 | |
| *** alecm has quit IRC | 12:10 | |
| *** projekt01 has joined #zope3-dev | 12:34 | |
| *** tarek has quit IRC | 12:54 | |
| *** projekt01 has quit IRC | 13:18 | |
| *** mkerrin has joined #zope3-dev | 13:19 | |
| *** dunny has quit IRC | 13:22 | |
| *** greenman has quit IRC | 13:27 | |
| *** jodok has quit IRC | 13:27 | |
| *** toutpt has quit IRC | 13:37 | |
| *** MJ has quit IRC | 13:43 | |
| *** yvl has joined #zope3-dev | 13:48 | |
| *** danielblackburn has quit IRC | 13:53 | |
| *** malthe has joined #zope3-dev | 13:56 | |
| *** ignas has joined #zope3-dev | 13:58 | |
| *** malthe is now known as malthe|breakfast | 14:16 | |
| *** alga has joined #zope3-dev | 14:24 | |
| *** salfield has joined #zope3-dev | 14:31 | |
| *** astoon has joined #zope3-dev | 14:33 | |
| astoon | Hi all. Someone knows why grokproject/paster not working xml-rpc ? | 14:37 |
| *** Aiste has joined #zope3-dev | 14:43 | |
| *** jodok has joined #zope3-dev | 14:46 | |
| *** mgedmin has joined #zope3-dev | 14:47 | |
| astoon | I'm sorry, I wanted to say, zopeproject. | 14:48 |
| *** pcardune has joined #zope3-dev | 14:58 | |
| *** danielblackburn has joined #zope3-dev | 15:08 | |
| *** benji has joined #zope3-dev | 15:13 | |
| *** hazmat has quit IRC | 15:16 | |
| *** hazmat has joined #zope3-dev | 15:18 | |
| *** ChanServ sets mode: +o hazmat | 15:18 | |
| *** toutpt has joined #zope3-dev | 15:20 | |
| astoon | i.e. every time I try to connect to XML-RPC with zopeproject appear processes - zombies | 15:24 |
| *** yvl has left #zope3-dev | 15:25 | |
| *** whit has joined #zope3-dev | 15:25 | |
| *** ghendi has quit IRC | 15:28 | |
| *** thruflo has joined #zope3-dev | 15:34 | |
| *** ghendi has joined #zope3-dev | 15:46 | |
| *** ryanbard has joined #zope3-dev | 15:49 | |
| *** lucielejard has joined #zope3-dev | 15:58 | |
| *** stub has quit IRC | 16:01 | |
| *** malthe|breakfast is now known as malthe | 16:01 | |
| *** cbcunc has joined #zope3-dev | 16:05 | |
| *** zagy_ has joined #zope3-dev | 16:06 | |
| *** zagy__ has joined #zope3-dev | 16:11 | |
| *** zagy_ has quit IRC | 16:11 | |
| *** zagy has quit IRC | 16:20 | |
| *** lisppaste6 has quit IRC | 16:21 | |
| *** b52laptop has quit IRC | 16:25 | |
| *** b52laptop has joined #zope3-dev | 16:25 | |
| *** lisppaste6 has joined #zope3-dev | 16:34 | |
| *** J1m has joined #zope3-dev | 16:52 | |
| *** hazmat has quit IRC | 16:53 | |
| *** hazmat has joined #zope3-dev | 16:59 | |
| *** ChanServ sets mode: +o hazmat | 16:59 | |
| *** zagy__ has quit IRC | 17:07 | |
| *** rmarianski has joined #zope3-dev | 17:12 | |
| *** sorindregan has quit IRC | 17:15 | |
| *** ghendi has quit IRC | 17:18 | |
| *** zagy_ has joined #zope3-dev | 17:25 | |
| *** rocky has joined #zope3-dev | 17:31 | |
| *** tarek has joined #zope3-dev | 17:34 | |
| *** ryanbard has left #zope3-dev | 17:35 | |
| *** hazmat has quit IRC | 17:48 | |
| *** hdima has quit IRC | 17:49 | |
| *** alecm has joined #zope3-dev | 17:49 | |
| *** sp0cksbeard has joined #zope3-dev | 18:02 | |
| *** tarek has quit IRC | 18:08 | |
| *** harobed has joined #zope3-dev | 18:15 | |
| *** alecm has quit IRC | 18:15 | |
| *** agroszer_ has joined #zope3-dev | 18:17 | |
| *** nathany has joined #zope3-dev | 18:22 | |
| *** dobee has quit IRC | 18:23 | |
| *** alecm has joined #zope3-dev | 18:23 | |
| *** pelle_ has quit IRC | 18:26 | |
| *** pelle_ has joined #zope3-dev | 18:26 | |
| *** pelle_ has quit IRC | 18:27 | |
| *** agroszer has quit IRC | 18:30 | |
| *** agroszer_ is now known as agroszer | 18:30 | |
| *** tarek has joined #zope3-dev | 18:36 | |
| *** jodok has quit IRC | 18:40 | |
| *** ignas has quit IRC | 18:50 | |
| *** rmarianski_ has joined #zope3-dev | 18:54 | |
| *** rmarianski has quit IRC | 18:54 | |
| *** rocky has quit IRC | 18:59 | |
| *** projekt01 has joined #zope3-dev | 18:59 | |
| *** lucielejard has quit IRC | 19:04 | |
| *** alecm has quit IRC | 19:07 | |
| *** alecm has joined #zope3-dev | 19:08 | |
| *** harobed has quit IRC | 19:10 | |
| *** whit has quit IRC | 19:14 | |
| *** whit has joined #zope3-dev | 19:14 | |
| *** hazmat has joined #zope3-dev | 19:16 | |
| *** ChanServ sets mode: +o hazmat | 19:16 | |
| *** mkerrin has quit IRC | 19:17 | |
| *** thruflo has quit IRC | 19:17 | |
| *** alecm has quit IRC | 19:19 | |
| *** alecm has joined #zope3-dev | 19:20 | |
| *** J1m has quit IRC | 19:22 | |
| *** jukart has quit IRC | 19:24 | |
| *** tarek has quit IRC | 19:26 | |
| *** J1m has joined #zope3-dev | 19:26 | |
| *** J1m has quit IRC | 19:28 | |
| *** projekt01 has left #zope3-dev | 19:29 | |
| *** danielblackburn has quit IRC | 19:30 | |
| *** quodt has quit IRC | 19:34 | |
| *** natea|boston has quit IRC | 19:35 | |
| *** TresEquis has joined #zope3-dev | 19:36 | |
| *** TresEquis has left #zope3-dev | 19:36 | |
| *** jpcw2002 has quit IRC | 19:42 | |
| *** natea|boston has joined #zope3-dev | 19:43 | |
| *** pbugni has joined #zope3-dev | 19:48 | |
| *** ignas has joined #zope3-dev | 19:59 | |
| *** ignas has quit IRC | 20:00 | |
| *** dunny has joined #zope3-dev | 20:11 | |
| *** mgedmin has quit IRC | 20:13 | |
| *** mgedmin has joined #zope3-dev | 20:14 | |
| *** pyqwer has quit IRC | 20:14 | |
| *** lucielejard has joined #zope3-dev | 20:15 | |
| *** norro has joined #zope3-dev | 20:15 | |
| *** lucielejard has quit IRC | 20:16 | |
| *** toutpt has quit IRC | 20:17 | |
| *** pelle_ has joined #zope3-dev | 20:28 | |
| *** pelle_ has quit IRC | 20:29 | |
| *** J1m has joined #zope3-dev | 20:42 | |
| *** astoon has quit IRC | 20:42 | |
| *** quodt has joined #zope3-dev | 20:45 | |
| *** pcardune has quit IRC | 20:54 | |
| *** rmarianski_ has quit IRC | 21:00 | |
| *** ignas has joined #zope3-dev | 21:01 | |
| *** projekt01 has joined #zope3-dev | 21:04 | |
| *** jodok has joined #zope3-dev | 21:05 | |
| *** rmarianski has joined #zope3-dev | 21:05 | |
| *** mgedmin has quit IRC | 21:08 | |
| *** unleash has joined #zope3-dev | 21:13 | |
| *** agroszer has quit IRC | 21:19 | |
| *** srichter has quit IRC | 21:25 | |
| *** danielblackburn has joined #zope3-dev | 21:32 | |
| *** lucielejard has joined #zope3-dev | 21:34 | |
| *** alga has quit IRC | 22:03 | |
| *** yvl has joined #zope3-dev | 22:07 | |
| *** unleash has quit IRC | 22:16 | |
| *** vod has quit IRC | 22:27 | |
| *** greenman has joined #zope3-dev | 22:28 | |
| *** vod has joined #zope3-dev | 22:28 | |
| *** rmarianski has quit IRC | 22:29 | |
| *** rmarianski has joined #zope3-dev | 22:29 | |
| *** afd__ has quit IRC | 22:32 | |
| *** projekt01 has quit IRC | 22:39 | |
| tlotze | malthe: ayt? | 22:49 |
| ignas | J1m: fyi - the catalog removal was my mistake apparently, I have passed wrong arguments (2 arguments switched places) to unregisterUtility call, thus leaving the Catalog still registered before removing it. And didn't check for the value unregisterUtility returns ... | 22:52 |
| * ignas kind of expected to get an error if there is no such utility in the component registry | 22:54 | |
| *** rmarianski has quit IRC | 23:02 | |
| *** rmarianski has joined #zope3-dev | 23:02 | |
| *** Jell-O-Fishi has joined #zope3-dev | 23:09 | |
| *** maurits has quit IRC | 23:11 | |
| *** greenman has quit IRC | 23:14 | |
| *** yvl has quit IRC | 23:15 | |
| *** ktwilight has joined #zope3-dev | 23:21 | |
| *** ktwilight_ has quit IRC | 23:23 | |
| *** jodok has quit IRC | 23:32 | |
| *** natea|boston has quit IRC | 23:34 | |
| *** jodok has joined #zope3-dev | 23:34 | |
| *** natea|boston has joined #zope3-dev | 23:34 | |
| *** alecm has quit IRC | 23:38 | |
| *** d2m has quit IRC | 23:59 | |
Generated by irclog2html.py 4.0.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!