IRC log of #zope3-dev for Wednesday, 2008-01-30

*** menesis has quit IRC00:00
malthetlotze: 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
tlotzeHm, 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
maltheright; actually I was going to just do it myself00:04
maltheunless you have the time ....00:04
tlotzeHm, if I may suggest something... just go ahead :o)00:04
malthehehe00:05
malthetlotze: but I'd like to not plug in to the publisher00:05
tlotzeI 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
malthegotcha00:06
tlotzeOK, plugging into the publisher sounds intriguing. Can you support that with some code? Maybe I see something...00:07
maltheit's there00:07
maltheit's nasty00:07
ignashow do I properly remove + unregister a local utility?00:07
tlotzeAh, so you want to plug out of it, so to speak00:07
maltheyes00:08
maltheit should really be conditional I think00:08
maltheif you do proper 2-phase rendering, it can be done correctly with a content provider.00:08
tlotzeOK, I'll take a look at it tomorrow morning on the train. Too late for me today.00:08
maltheappreciate it00:09
tlotzenp00:09
ignasJ1m: are you there?00:12
*** nathany has quit IRC00:16
*** [1]Doc_Dan has joined #zope3-dev00:18
*** alga has quit IRC00:19
*** rmarianski_ has joined #zope3-dev00:24
*** rmarianski has quit IRC00:24
*** [2]Doc_Dan has joined #zope3-dev00:30
*** Doc_Dan has quit IRC00:33
*** [2]Doc_Dan is now known as Doc_Dan00:33
*** lucielejard has quit IRC00:33
ignasI am trying to unregister a local utility that is a Catalog00:33
ignaswhich leads to a could not find IIntId utility error00:34
ignasI have traced it to the attempt to reindex the siteManager object due to an IObjectRemoved event00:34
*** jodok has quit IRC00:34
ignaswhile reindexing - getAllUtilitiesRegisteredFor(ICatalog) call returns the Catalog that I am trying to remove00:35
ignaseven though i have unregistered it and am just trying to 'del' it00:35
ignasnaturally a call to getUtility(IIntIds, context=cat) fails, because the catalog in question has no __parent__ anymore00:36
ignasbecause well - it's in the middle of being removed from the site manager00:36
*** alecm has quit IRC00:36
*** alecm has joined #zope3-dev00:36
ignasso - what might I be doing wrong? and what would be the right way to solve the problem?00:36
*** MrTopf has quit IRC00:38
*** dobee has quit IRC00:39
*** [1]Doc_Dan has quit IRC00:45
*** pbugni has quit IRC00:46
*** Doc_Dan has quit IRC00:55
*** tomus has quit IRC01:07
J1mignas, ayt?01:11
*** ryanbard has quit IRC01:13
*** malthe is now known as malthe|Zzz01:13
*** sp0cksbeard has quit IRC01:14
ignasJ1m: yes01:15
J1mignas, you are falling victim to over-general subscribers.01:15
ignasi see01:16
ignasit seems that reindexDocSubscriber is registered for everything01:16
ignasexcept for the INoAutoReindex objects01:16
ignasi have worked around it by setting __parent__ and __name__ of the Catalog to None01:16
ignasto muffle all the events01:16
ignasbut I am not 100% sure it is safe to do that01:16
ignasbecause I don't know what other subscribers are fired when you remove something from the siteManager01:17
J1mIt doesn't really matter.01:17
J1mYou should remove *this* subscriber and add one that is more selective.01:17
J1malternatively, you can blacklist some types/classes with INoAutoReindex, which seems very reasonable to me.01:18
J1mThe general subscribers are kinda convenient for getting started.01:19
ignashmm, 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 dependency01:19
ignasso i'll probably have to add it to my application01:19
ignasthough isn01:19
ignasisn't it better to not register the reindex and index subscribers at all, and allow users of Catalog to register them when they need them01:20
J1mBut after a while, you generaly want to be more specific. The INoAutoReindex seems like a nice interim tool.01:21
J1mI don't understand what you are talking about.01:21
J1mIn zcml. I think you can just mark classes to exclude with INoAutoReindex.01:21
ignasI understand, but that solves this problem only for me, and I was thinking of a way to solve it to others too.01:22
ignasWithout that declaration removal of Catalog is more or less impossible ...01:22
J1mThat's the problem, sometimes trying to solve something generally just creates general problems. :)01:22
ignas:)01:23
ignasmakes sense :)01:23
benjiThat's generally the case. ;)01:23
ignasthanks for the solution01:23
ignasi'll just add it next to the catalog zcml include01:23
*** danielblackburn has quit IRC01:23
*** ryanbard has joined #zope3-dev01:25
ignasby 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 ones01:25
ignasi 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_iternext01:26
ignaseven though the interface was stored only on the object that was deleted01:27
Theunifrom 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
ignasTheuni: thanks for teaching me a new word ;)01:31
*** alecm has quit IRC01:31
ignasi guess i'll have to remove the interface in the next iteration01:34
*** vod has quit IRC01:40
*** vod has joined #zope3-dev01:41
*** ryanbard has quit IRC01:42
*** benji has quit IRC01:44
*** norro has quit IRC01:58
*** alecm has joined #zope3-dev01:59
*** rmarianski_ has quit IRC02:00
*** rmarianski has joined #zope3-dev02:01
*** whit has quit IRC02:11
*** ignas has quit IRC02:12
*** dunny has quit IRC02:19
*** danielblackburn has joined #zope3-dev02:32
*** lucielejard has joined #zope3-dev02:32
*** lucielejard has quit IRC02:34
*** rmarianski_ has joined #zope3-dev02:39
*** rmarianski has quit IRC02:39
*** rmarianski_ has quit IRC02:55
*** greenman has joined #zope3-dev03:11
*** J1m has quit IRC03:56
*** quodt has quit IRC04:04
*** malthe|Zzz has quit IRC04:09
*** reco has quit IRC04:11
*** whit has joined #zope3-dev04:25
*** natea|boston has quit IRC04:42
*** greenman has quit IRC04:52
*** dunny has joined #zope3-dev05:02
*** stub has joined #zope3-dev05:21
*** natea|boston has joined #zope3-dev05:32
*** niemeyer has quit IRC05:34
*** rcrafton has quit IRC05:49
*** whit has quit IRC05:53
*** alecm has quit IRC06:01
*** baijum has joined #zope3-dev07:05
*** dunny has quit IRC07:27
*** baijum has quit IRC07:44
*** d2m has joined #zope3-dev07:53
*** philiKON_ has joined #zope3-dev07:58
*** philiKON has quit IRC08:14
*** afd_ has joined #zope3-dev08:20
*** kursor has joined #zope3-dev08:31
*** dobee has joined #zope3-dev08:33
*** jukart has joined #zope3-dev08:43
*** alecm has joined #zope3-dev08:46
*** greenman has joined #zope3-dev08:47
*** jodok has joined #zope3-dev08:56
*** hdima has joined #zope3-dev08:58
*** sorin has joined #zope3-dev09:05
*** sorin is now known as sorindregan09:05
*** zagy has joined #zope3-dev09:05
*** ccomb has quit IRC09:39
*** afd__ has joined #zope3-dev09:52
*** agroszer has joined #zope3-dev10:02
*** tarek has joined #zope3-dev10:02
*** afd_ has quit IRC10:09
*** kursor has quit IRC10:17
*** pyqwer has joined #zope3-dev10:23
*** jpcw2002 has joined #zope3-dev10:25
*** pelle_ has joined #zope3-dev10:35
*** pelle_ has joined #zope3-dev10:36
*** Aiste has quit IRC10:45
*** MJ has joined #zope3-dev10:53
*** ghendi has joined #zope3-dev11:02
*** vahur has joined #zope3-dev11:06
*** jpcw2002_ has joined #zope3-dev11:18
*** niemeyer has joined #zope3-dev11:18
*** toutpt has joined #zope3-dev11:21
*** Doc_Dan has joined #zope3-dev11:22
*** maurits has joined #zope3-dev11:24
*** jpcw2002 has quit IRC11:26
*** jpcw__ has joined #zope3-dev11:35
*** dunny has joined #zope3-dev11:39
*** jpcw2002_ has quit IRC11:47
*** quodt has joined #zope3-dev11:55
*** jpcw2002 has joined #zope3-dev11:56
*** alecm has quit IRC12:10
*** projekt01 has joined #zope3-dev12:34
*** tarek has quit IRC12:54
*** projekt01 has quit IRC13:18
*** mkerrin has joined #zope3-dev13:19
*** dunny has quit IRC13:22
*** greenman has quit IRC13:27
*** jodok has quit IRC13:27
*** toutpt has quit IRC13:37
*** MJ has quit IRC13:43
*** yvl has joined #zope3-dev13:48
*** danielblackburn has quit IRC13:53
*** malthe has joined #zope3-dev13:56
*** ignas has joined #zope3-dev13:58
*** malthe is now known as malthe|breakfast14:16
*** alga has joined #zope3-dev14:24
*** salfield has joined #zope3-dev14:31
*** astoon has joined #zope3-dev14:33
astoonHi all. Someone knows why grokproject/paster not working xml-rpc ?14:37
*** Aiste has joined #zope3-dev14:43
*** jodok has joined #zope3-dev14:46
*** mgedmin has joined #zope3-dev14:47
astoonI'm sorry, I wanted to say, zopeproject.14:48
*** pcardune has joined #zope3-dev14:58
*** danielblackburn has joined #zope3-dev15:08
*** benji has joined #zope3-dev15:13
*** hazmat has quit IRC15:16
*** hazmat has joined #zope3-dev15:18
*** ChanServ sets mode: +o hazmat15:18
*** toutpt has joined #zope3-dev15:20
astooni.e. every time I try to connect to XML-RPC with zopeproject appear processes - zombies15:24
*** yvl has left #zope3-dev15:25
*** whit has joined #zope3-dev15:25
*** ghendi has quit IRC15:28
*** thruflo has joined #zope3-dev15:34
*** ghendi has joined #zope3-dev15:46
*** ryanbard has joined #zope3-dev15:49
*** lucielejard has joined #zope3-dev15:58
*** stub has quit IRC16:01
*** malthe|breakfast is now known as malthe16:01
*** cbcunc has joined #zope3-dev16:05
*** zagy_ has joined #zope3-dev16:06
*** zagy__ has joined #zope3-dev16:11
*** zagy_ has quit IRC16:11
*** zagy has quit IRC16:20
*** lisppaste6 has quit IRC16:21
*** b52laptop has quit IRC16:25
*** b52laptop has joined #zope3-dev16:25
*** lisppaste6 has joined #zope3-dev16:34
*** J1m has joined #zope3-dev16:52
*** hazmat has quit IRC16:53
*** hazmat has joined #zope3-dev16:59
*** ChanServ sets mode: +o hazmat16:59
*** zagy__ has quit IRC17:07
*** rmarianski has joined #zope3-dev17:12
*** sorindregan has quit IRC17:15
*** ghendi has quit IRC17:18
*** zagy_ has joined #zope3-dev17:25
*** rocky has joined #zope3-dev17:31
*** tarek has joined #zope3-dev17:34
*** ryanbard has left #zope3-dev17:35
*** hazmat has quit IRC17:48
*** hdima has quit IRC17:49
*** alecm has joined #zope3-dev17:49
*** sp0cksbeard has joined #zope3-dev18:02
*** tarek has quit IRC18:08
*** harobed has joined #zope3-dev18:15
*** alecm has quit IRC18:15
*** agroszer_ has joined #zope3-dev18:17
*** nathany has joined #zope3-dev18:22
*** dobee has quit IRC18:23
*** alecm has joined #zope3-dev18:23
*** pelle_ has quit IRC18:26
*** pelle_ has joined #zope3-dev18:26
*** pelle_ has quit IRC18:27
*** agroszer has quit IRC18:30
*** agroszer_ is now known as agroszer18:30
*** tarek has joined #zope3-dev18:36
*** jodok has quit IRC18:40
*** ignas has quit IRC18:50
*** rmarianski_ has joined #zope3-dev18:54
*** rmarianski has quit IRC18:54
*** rocky has quit IRC18:59
*** projekt01 has joined #zope3-dev18:59
*** lucielejard has quit IRC19:04
*** alecm has quit IRC19:07
*** alecm has joined #zope3-dev19:08
*** harobed has quit IRC19:10
*** whit has quit IRC19:14
*** whit has joined #zope3-dev19:14
*** hazmat has joined #zope3-dev19:16
*** ChanServ sets mode: +o hazmat19:16
*** mkerrin has quit IRC19:17
*** thruflo has quit IRC19:17
*** alecm has quit IRC19:19
*** alecm has joined #zope3-dev19:20
*** J1m has quit IRC19:22
*** jukart has quit IRC19:24
*** tarek has quit IRC19:26
*** J1m has joined #zope3-dev19:26
*** J1m has quit IRC19:28
*** projekt01 has left #zope3-dev19:29
*** danielblackburn has quit IRC19:30
*** quodt has quit IRC19:34
*** natea|boston has quit IRC19:35
*** TresEquis has joined #zope3-dev19:36
*** TresEquis has left #zope3-dev19:36
*** jpcw2002 has quit IRC19:42
*** natea|boston has joined #zope3-dev19:43
*** pbugni has joined #zope3-dev19:48
*** ignas has joined #zope3-dev19:59
*** ignas has quit IRC20:00
*** dunny has joined #zope3-dev20:11
*** mgedmin has quit IRC20:13
*** mgedmin has joined #zope3-dev20:14
*** pyqwer has quit IRC20:14
*** lucielejard has joined #zope3-dev20:15
*** norro has joined #zope3-dev20:15
*** lucielejard has quit IRC20:16
*** toutpt has quit IRC20:17
*** pelle_ has joined #zope3-dev20:28
*** pelle_ has quit IRC20:29
*** J1m has joined #zope3-dev20:42
*** astoon has quit IRC20:42
*** quodt has joined #zope3-dev20:45
*** pcardune has quit IRC20:54
*** rmarianski_ has quit IRC21:00
*** ignas has joined #zope3-dev21:01
*** projekt01 has joined #zope3-dev21:04
*** jodok has joined #zope3-dev21:05
*** rmarianski has joined #zope3-dev21:05
*** mgedmin has quit IRC21:08
*** unleash has joined #zope3-dev21:13
*** agroszer has quit IRC21:19
*** srichter has quit IRC21:25
*** danielblackburn has joined #zope3-dev21:32
*** lucielejard has joined #zope3-dev21:34
*** alga has quit IRC22:03
*** yvl has joined #zope3-dev22:07
*** unleash has quit IRC22:16
*** vod has quit IRC22:27
*** greenman has joined #zope3-dev22:28
*** vod has joined #zope3-dev22:28
*** rmarianski has quit IRC22:29
*** rmarianski has joined #zope3-dev22:29
*** afd__ has quit IRC22:32
*** projekt01 has quit IRC22:39
tlotzemalthe: ayt?22:49
ignasJ1m: 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 registry22:54
*** rmarianski has quit IRC23:02
*** rmarianski has joined #zope3-dev23:02
*** Jell-O-Fishi has joined #zope3-dev23:09
*** maurits has quit IRC23:11
*** greenman has quit IRC23:14
*** yvl has quit IRC23:15
*** ktwilight has joined #zope3-dev23:21
*** ktwilight_ has quit IRC23:23
*** jodok has quit IRC23:32
*** natea|boston has quit IRC23:34
*** jodok has joined #zope3-dev23:34
*** natea|boston has joined #zope3-dev23:34
*** alecm has quit IRC23:38
*** d2m has quit IRC23:59

Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!