IRC log of #zope3-dev for Wednesday, 2005-04-13

srichterbut he will know00:00
srichterit would not have been what I expected, but it is probably documented somewhere00:00
FarcePesthe refered me to http://www.zope.org/Wikis/ZODB/FrontPage/guide/node6.html00:00
FarcePest5.3.200:03
srichteryep00:04
srichterah of course, that makes sense00:04
srichterbecause you mutate the tree while iterating00:05
srichtersince the entire point of iterators is to be lazy, the outcome is unporedictable00:05
FarcePesti figured that was going on, but it seemed bug-like that it would affect keys(), which is counter to would happen with normal dict00:05
FarcePesttim: "It's true that BTree.keys() does not create a distinct list, but00:06
FarcePestthat's documented, important, and won't change.  BTree.keys() acts a00:06
FarcePestlot more like dictionary.iterkeys()."00:06
srichterright, since it creates an iterator00:11
*** admp has joined #zope3-dev00:11
FarcePestperhaps behaviorally, keys() should be implemented as return list(self.iterkeys())00:12
FarcePestthat seems more pythonic to me. if you are worried about the index being huge, you'll use iterkeys() anyway00:12
*** efge has joined #zope3-dev00:13
*** tarek_ has quit IRC00:13
*** niemeyer has quit IRC00:13
FarcePesthowever, lazy keys() might be too firmly entrenched, since there's a bunch of stuff that predates iterators00:14
FarcePestunfortunately, BTreeContainer doesn't have iterkeys()00:17
srichterdid you ask Tim for the rational of this design decision?00:30
srichterok, time to go home00:31
*** srichter has quit IRC00:31
*** admp has quit IRC00:32
*** tvon has joined #zope3-dev00:38
*** tvon has quit IRC00:49
*** RaFromBRC is now known as RaFromBRC|afk01:26
*** RaFromBRC|afk is now known as RaFromBRC01:53
*** nisha_cgx has joined #zope3-dev02:26
*** nisha_cgx has quit IRC02:41
*** alga has quit IRC02:44
*** efge has quit IRC02:46
*** hazmat_ has joined #zope3-dev02:52
*** hazmat_ is now known as replicant02:53
*** srichter has joined #zope3-dev03:23
*** ChanServ sets mode: +o srichter03:23
*** bradb has quit IRC03:26
*** bskahan has joined #zope3-dev03:52
*** bskahan has quit IRC03:54
*** projekt01 has left #zope3-dev04:01
*** replicant has quit IRC04:03
*** BjornT has quit IRC04:20
*** bradb has joined #zope3-dev04:24
*** BjornT has joined #zope3-dev05:29
*** hazmat has quit IRC06:18
*** BjornT has quit IRC06:26
*** stub has quit IRC06:48
*** stub has joined #zope3-dev06:49
*** d2m_ has joined #zope3-dev07:47
*** d2m has quit IRC07:47
*** d2m_ is now known as d2m07:47
*** viyyer has joined #zope3-dev08:20
*** mexiKON has joined #zope3-dev09:05
*** philiKON has quit IRC09:11
*** stub has quit IRC09:18
*** stub has joined #zope3-dev09:28
*** hdima has joined #zope3-dev09:43
*** sashav has joined #zope3-dev09:44
*** __gotcha has joined #zope3-dev10:10
*** Aiste has joined #zope3-dev10:21
*** alga has joined #zope3-dev10:23
*** vlado|away has quit IRC10:33
*** lunatik has joined #zope3-dev10:56
*** projekt01 has joined #zope3-dev11:05
*** Aiste has quit IRC11:06
*** Aiste has joined #zope3-dev11:44
*** alga has quit IRC12:33
*** alga has joined #zope3-dev12:38
*** mkerrin has joined #zope3-dev12:50
*** tarek has joined #zope3-dev12:51
*** stub has quit IRC13:08
*** stub has joined #zope3-dev13:18
*** projekt01 has quit IRC13:26
*** RaFromBRC has quit IRC13:33
*** __gotcha has quit IRC14:08
*** mgedmin has joined #zope3-dev14:23
*** bskahan has joined #zope3-dev14:25
*** srichter has quit IRC14:26
*** SteveA has joined #zope3-dev14:29
*** BjornT has joined #zope3-dev14:39
*** regebro has joined #zope3-dev14:39
*** Aiste has quit IRC14:41
*** Aiste has joined #zope3-dev14:42
*** tarek has quit IRC14:42
*** Aiste has quit IRC14:47
*** Aiste has joined #zope3-dev14:48
*** regebro has quit IRC15:13
*** srichter has joined #zope3-dev15:15
*** ChanServ sets mode: +o srichter15:16
*** faassen has joined #zope3-dev15:20
*** SteveA_ has joined #zope3-dev15:21
*** SteveA has quit IRC15:22
*** admp has joined #zope3-dev15:24
*** MiUlEr has joined #zope3-dev15:32
*** tarek has joined #zope3-dev15:44
*** mgedmin has quit IRC15:47
*** viyyer has quit IRC15:48
*** bradb has quit IRC15:53
*** admp has joined #zope3-dev15:55
*** BjornT has quit IRC15:55
*** stub has quit IRC16:07
*** niemeyer has joined #zope3-dev16:09
*** bradb has joined #zope3-dev16:09
*** ignas has joined #zope3-dev16:19
*** __gotcha__ is now known as __gotcha16:23
*** bradb_ has joined #zope3-dev16:28
*** BjornT has joined #zope3-dev16:35
*** bradb has quit IRC16:38
*** tvon has joined #zope3-dev16:40
*** bradb_ is now known as bradb16:40
*** projekt01 has joined #zope3-dev16:48
*** hdima has quit IRC17:11
*** sashav has quit IRC17:16
*** MiUlEr is now known as MiUlErSan17:28
*** regebro has joined #zope3-dev17:35
*** hazmat has joined #zope3-dev17:44
tarekHi, is there anything comparable to z2's "beforeCommitHook" in Zope 3 ?17:48
*** alga has quit IRC17:52
*** hazmat has quit IRC17:53
srichtertarek: let me check17:54
*** MiUlErSan has quit IRC17:58
tareksrichter, ok thanks18:00
FarcePestsrichter, re BTreeContainer.keys(), no, I did not ask Tim for the rationale for the design decision18:02
srichtertarek: we have an EndRequestEvent18:02
tarekgreat, thank you :)18:02
srichtertarek: nothing should happen after that, so this should be as close as you need to be18:03
tarekok, i am looking at it18:03
srichtertarek: see zope.app.publication.zopepublication18:03
tarekok thx18:03
srichterFarcePest: ok, maybe we should :-)18:03
*** MiUlErSan has joined #zope3-dev18:07
FarcePestyeah, i'm partial to making the current .keys() implementation .iterkeys(), and making .keys() return list(self.iterkeys())18:08
FarcePestor at the very least, adding .iterkeys(), and warning people that .keys() will return a list at some point in the future18:09
srichterFarcePest: It will be an uphill battle, but you can always try :-)18:11
*** vlado has joined #zope3-dev18:12
*** mgedmin has joined #zope3-dev18:31
*** vlado has quit IRC18:55
*** hazmat has joined #zope3-dev19:11
*** hazmat has joined #zope3-dev19:16
*** bskahan has quit IRC19:17
*** Theuni has quit IRC19:24
*** lunatik has left #zope3-dev19:33
*** hazmat has quit IRC19:34
*** bskahan has joined #zope3-dev19:35
*** tvon has quit IRC19:35
*** hazmat has joined #zope3-dev19:36
FarcePestdoes zope3 use the python built-in datetime objects now?19:39
mgedminyes19:40
*** admp has quit IRC19:40
*** tvon has joined #zope3-dev19:45
*** admp has joined #zope3-dev19:45
mgedminif I have a ZODB Connection, can I iterate over all Persisten objects?19:55
mgedmin(I need to write a generation evolve script and change an object that is stored as an annotation)19:56
mgedmin(findObjectsProviding only returns those objects that are reachable from the root by calling 'values()' on various mappings)19:56
mgedmin(you won't get objects stored in annotations from findObjectsProviding)19:56
*** admp has quit IRC19:58
* srichter just got into a piss match with some Twisted guys. Oy19:58
srichtermgedmin: no20:00
mgedmin:(20:00
srichtermgedmin: I know20:00
srichterJim wants something like that in ZODB for this reason20:00
SteveA_so, oids are longs...20:01
mgedminI suppose you can do some tricks with pickling, like locationCopy does20:01
SteveA_you just need to start at 120:01
mexiKONheh20:01
SteveA_there's an API for migrating a storage20:02
SteveA_which it an iterator that goes through all objects20:02
*** alga has joined #zope3-dev20:16
ignas??20:16
ignas"which it an iterator" ?20:16
*** MiUlErSan has quit IRC20:19
*** MiUlEr has joined #zope3-dev20:20
*** bska|mobile has joined #zope3-dev20:29
*** bskahan has quit IRC20:31
*** bska|mobile is now known as bskahan20:32
*** admp has joined #zope3-dev20:43
*** regebro has quit IRC20:48
*** mkerrin has quit IRC20:49
*** SteveA has joined #zope3-dev20:52
*** SteveA has quit IRC20:52
*** RaFromBRC has joined #zope3-dev21:05
*** Aiste has quit IRC21:05
*** nisha_cgx has joined #zope3-dev21:15
*** nisha_cgx has quit IRC21:38
*** mkerrin has joined #zope3-dev21:44
*** faassen has quit IRC21:45
*** mgedmin has quit IRC21:58
tvonIs there a way to check weather an object properly implements an interface?22:05
tvoneg, check that everything defined in the interface is in the object22:05
vinscitvon, yes, by using Java :)22:07
tvonheh22:07
vinscione of the reasons I prefer java for some tasks...22:07
tvonI could do it in a few lines but I thought there might be something in zope I wasn't finding22:08
vinsciI hope there is something, as otherwise updated to implementing classes will be partial sometimes (due to humar error)22:10
*** bskahan has quit IRC22:13
*** bskahan has joined #zope3-dev22:13
*** alga has quit IRC22:13
*** ignas has quit IRC22:14
tvonvinsci: zope.interface.verify.verifyObject seems to do it22:21
tvonnow take back the mean things you said about using java :)22:22
vinscinah, not until Python does it automatically22:22
tvonheh22:23
tvonthat would be nice22:23
vinsciabove all, it would be _reliable_22:23
* vinsci is a fan of reliability22:23
srichterit would suck if Python does it automatically22:25
srichteroftentimes we purposfully do not implment the entire interface22:25
srichtertesting is a big example here; we are able to make stub implmentations, where we implement only as much of an interface as we need22:26
* bradb wonders how verifyObject ended up with such a bizarre name22:27
srichterverify an object's implementation of an interface22:28
srichteryou always have to see it in the context of its module: zope.interface.verify22:28
*** tvon has quit IRC22:33
*** tvon has joined #zope3-dev22:33
*** srichter has quit IRC22:37
tvonI understand that reasoning, though the death of stubs would not bother me much22:44
tvonthe biggest problem I have with writing tests is finding out that a stub somewhere up the line doesn't have something that it should22:46
*** tvon has left #zope3-dev22:54
*** mkerrin has quit IRC23:06
*** srichter has joined #zope3-dev23:09
*** ChanServ sets mode: +o srichter23:09
*** Aiste has joined #zope3-dev23:10
*** bskahan has quit IRC23:23
*** deo has quit IRC23:31
*** hazmat has left #zope3-dev23:34
*** bskahan has joined #zope3-dev23:39
*** efge has joined #zope3-dev23:50
srichterwith twsited's async loop in place, it will be very easy to write cron-like services23:52
*** tarek has quit IRC23:53
FarcePestso who won that pissing contest you mentioned earlier?23:55
srichterwell, there was no winner as I had to leave23:56
srichterbut I hate it if people behave like their technology is the answer to the universe23:56
FarcePestdon't they know it's OUR technology? duh23:57
srichterwell, I think the people that were snappy were simple users of Twisted which are not envolved a lot23:57
srichterdash was actually very nice and tried to listen to my complaint23:58
FarcePestis that "involved" or "evolved"?23:58
srichterinvolved23:59
srichtersorry23:59

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