IRC log of #zope3-dev for Wednesday, 2009-07-29

pcarduneTheuni1: this thread from ZODB-Dev looks like the problem: http://mail.zope.org/pipermail/zodb-dev/2002-February/002250.html00:00
Theuni1yeah, rings a bell00:00
Theuni1not too loudly though ;)00:01
pcarduneI'm a bit fuzzy on how OOBTrees work in general00:01
Theuni1IIRC you need to watch out for the same issues with using objects as btree keys as you would for dicts00:02
benjiTheuni1: you do recall correctly00:07
Theuni1benji: was it identical or are the some deviations I don't remember?00:08
benjiidentical, as far as I know00:08
benjiyou have to make sure the keys have a hash that doesn't change00:08
pcardunewhat are the issues with using objects as dictionary keys?00:08
benjithe hash can't change ;)00:09
benjiwith dictionaries it usually works because object hashs default to the ID, which is derrived from the memory address00:09
benjisince that can't change during a program run, you don't have a problem00:09
pcarduneright00:09
pcardunepersistent objects are where the trouble comes00:10
benjiright00:10
Theuni1also, the hashes must be unique00:10
Theuni1the code you referenced has pretty strong collision chances00:10
Theuni1the one from thomas00:10
benjiit's easier to create a key that identifies each object and use that instead (like an int ID)00:10
benji(easier than trying to get the hashing to work just right)00:11
pcardunebut OOBTrees don't do that00:11
Theuni1the OID would work for simple cases I guess00:11
benjiyep00:11
pcardunewell, this problem recently came up when we switched from using mapping storage to filestorage00:11
pcarduneand that would explain why it's a bit hard to test...00:11
pcarduneany tips on the best way to test something like this?00:12
Theuni1either stochastically (which makes it slow) or some tedious work to force the collision00:13
Theuni1i wonder why btrees should behave different in mappingstorage/filestorage00:14
pcarduneTheuni1: glad to hear that I'm not the only one wondering that :)00:15
Theuni1does mappingstorage do the whole mvcc dance with old revisions and transaction history?00:15
Theuni1I'm a bit tired currently and need to go to bed soon ...00:15
benjithey probably don't, but mappingstorages are in-memory, right?  if so, the object's hash can't change during a run, so no problem; when using a filestorage to persist OOBTrees between runs, you'll start having problems00:16
pcardunebenji: but don't the objects kind of get "persisted" by being pickled and then unpickled?00:16
Theuni1benji: the storage API should abstract that away so the objects would actually change00:17
benjiI don't think mapping storage pickles anything00:17
Theuni1it has to00:17
pcardunejust that it gets pickled to and from memory rather than disk00:17
* benji goes to look at the source00:17
Theuni1it's not the task of the storage to do that00:17
Theuni1the storage never sees anything else00:17
Theuni1I fiddled with that API a lot and I'm pretty sure about most of it by now ;)00:17
benjiyep, it deals only in pickles; therefore I have no idea why pcardune is seeing differences00:19
benjihmm, if the object cache is large enough, no objects will ever be loaded from the storage, I wonder if that has something to do with it (but the object cache size should be the same regardless of the underlying storage)00:22
Theuni1yup00:22
Theuni1also: when connections change due to threading, this wouldn't hold anymore.00:22
Theuni1i've gotta go to bed now :)00:23
* Theuni1 waves00:23
benjipcardune: if you can make a short script that demonstrates the problem, I'd be interested in taking a look00:23
benjig'night Theuni100:23
Theuni1if you take it to the zodb list i'd be happy to have a look too00:23
pcardunebenji: i'll try... was very very hard for us to reproduce it00:23
*** Theuni1 has quit IRC00:23
*** aaronv has quit IRC00:26
*** mintsauce has quit IRC00:27
*** gary_poster has quit IRC00:32
*** JaRoel|4D has joined #zope3-dev00:34
*** davisagli has joined #zope3-dev00:34
*** drudi has quit IRC00:38
*** drudi has joined #zope3-dev00:41
*** davisagli has quit IRC00:44
*** aaronv has joined #zope3-dev00:55
*** aaronv_ has joined #zope3-dev00:57
*** redir has quit IRC00:57
*** malthe is now known as malthe|Zzz00:57
*** lurkymclurkleton has quit IRC01:06
*** benji has quit IRC01:07
*** aaronv__ has joined #zope3-dev01:08
*** aaronv_ has quit IRC01:08
*** ccomb has quit IRC01:12
*** davisagli has joined #zope3-dev01:14
*** aaronv has quit IRC01:18
*** romanofski has joined #zope3-dev01:21
*** aaronv__ has quit IRC01:23
*** davisagli has quit IRC01:23
*** romanofski has quit IRC01:35
*** jamur2 has quit IRC01:45
*** pcardune_ has joined #zope3-dev01:46
*** redir has joined #zope3-dev01:56
*** drudi has quit IRC02:02
*** redir_ has joined #zope3-dev02:06
*** nathany has quit IRC02:11
*** J1m has quit IRC02:15
*** febb has joined #zope3-dev02:32
*** jhauser_ has joined #zope3-dev03:33
*** redir has quit IRC03:34
*** jhauser has quit IRC03:34
*** dunny has quit IRC03:47
*** aaronv has joined #zope3-dev04:11
*** davisagli has joined #zope3-dev04:58
*** pcardune has quit IRC05:07
*** dunny has joined #zope3-dev05:19
*** dunny has quit IRC05:40
*** pcardune_ has quit IRC05:44
*** pcardune has joined #zope3-dev05:59
*** redir has joined #zope3-dev06:04
*** dunny has joined #zope3-dev06:08
*** dunny has quit IRC06:09
*** allisterb__ has joined #zope3-dev06:28
*** stub has joined #zope3-dev06:30
*** pcardune has quit IRC06:32
*** allisterb_ has quit IRC06:47
*** alecm has quit IRC06:47
*** linmyat has joined #zope3-dev06:50
*** greenman has quit IRC06:50
*** pcardune has joined #zope3-dev06:52
*** kaeru has quit IRC06:53
*** allisterb_ has joined #zope3-dev07:26
*** pcardune has quit IRC07:40
*** allisterb__ has quit IRC07:43
*** sunoano has quit IRC07:45
*** sunoano has joined #zope3-dev07:46
*** dunny_ has joined #zope3-dev07:48
*** jdobrien has quit IRC07:50
*** dunny_ has quit IRC08:04
*** pcardune has joined #zope3-dev08:08
*** pcardune has quit IRC08:10
*** dunny has joined #zope3-dev08:13
*** sweh has joined #zope3-dev08:13
*** jukart has joined #zope3-dev08:23
*** agroszer has joined #zope3-dev08:26
*** pcardune has joined #zope3-dev08:35
*** greenman has joined #zope3-dev08:35
*** pcardune has quit IRC08:35
*** dunny has quit IRC08:40
*** dunny has joined #zope3-dev08:43
*** pcardune has joined #zope3-dev08:45
*** sweh has quit IRC08:57
*** dunny has quit IRC09:02
*** __mac__ has joined #zope3-dev09:07
*** Theuni1 has joined #zope3-dev09:07
*** sweh has joined #zope3-dev09:12
*** romanofski has joined #zope3-dev09:12
*** redir has quit IRC09:22
*** markusleist has quit IRC09:29
*** pcardune has quit IRC09:31
*** febb has quit IRC09:40
*** ccomb has joined #zope3-dev09:43
*** alecm has joined #zope3-dev10:03
*** goschtl has joined #zope3-dev10:04
*** davisagli has quit IRC10:22
*** ccomb has quit IRC10:30
*** jpcw has joined #zope3-dev10:30
*** ccomb has joined #zope3-dev10:30
*** redir_ has quit IRC10:31
*** kaeru has joined #zope3-dev10:33
*** malthe|Zzz is now known as malthe10:39
*** Theuni1 has quit IRC10:57
*** Theuni1 has joined #zope3-dev10:59
*** mintsauce has joined #zope3-dev11:09
*** junkafarian_ has joined #zope3-dev11:16
*** junkafarian__ has joined #zope3-dev11:17
*** junkafarian has quit IRC11:17
*** greenman has quit IRC11:18
*** Theuni1 has quit IRC11:20
*** greenman has joined #zope3-dev11:22
*** dunny has joined #zope3-dev11:22
*** ccomb has quit IRC11:24
*** junkafarian_ has quit IRC11:35
*** alecm has quit IRC11:37
*** __mac__ has quit IRC11:54
*** __mac__ has joined #zope3-dev11:54
*** junkafarian__ is now known as junkafarian12:09
*** mkerrin has joined #zope3-dev12:11
*** pelle___ has joined #zope3-dev12:12
*** markusleist has joined #zope3-dev12:16
*** pelle____ has joined #zope3-dev12:29
*** pelle__ has quit IRC12:29
goschtlhi i search for an example of a z3c.form widget for zope.schema.Dict Fields. any pointers?12:30
*** pelle___ has quit IRC12:46
*** linmyat has quit IRC12:51
*** greenman has quit IRC12:56
*** sweh has quit IRC13:02
*** sweh has joined #zope3-dev13:24
*** ignas has joined #zope3-dev13:36
*** aaronv has quit IRC13:41
*** kaeru has quit IRC14:09
*** Theuni1 has joined #zope3-dev14:15
*** redir has joined #zope3-dev14:17
goschtlHi what is the recommended way of changing the size for a z3c.Form Text Widget?14:34
*** kaeru has joined #zope3-dev14:39
*** benji has joined #zope3-dev14:40
*** kaeru has quit IRC14:45
*** romanofski has quit IRC14:47
*** projekt01 has joined #zope3-dev14:51
*** multani has quit IRC14:52
*** jdobrien has joined #zope3-dev14:52
*** lamike has joined #zope3-dev14:53
*** lamike has left #zope3-dev14:53
*** hazmat has quit IRC14:59
goschtlprojekt01: sorry for stupid question but was is the best way to change size and maxlength with z3c.form?15:01
goschtlupdateWidgets?15:01
srichtergoschtl: CSS :-)15:12
goschtlsrichter: OK danke....15:13
srichtergoschtl: we specifically provide good CSS classes and ids in the rendered widget, so that CSS can be used for pretty much any use case15:15
goschtlsrichter: ok makes sense, thanks15:17
*** junkafarian_ has joined #zope3-dev15:17
*** kaeru has joined #zope3-dev15:23
*** kaeru has quit IRC15:30
*** aaronv has joined #zope3-dev15:33
*** junkafarian has quit IRC15:34
*** srichter has quit IRC15:44
*** gary_poster has joined #zope3-dev15:45
*** redir has quit IRC15:46
*** malthe is now known as malthe|away15:46
*** sunoano has quit IRC15:47
*** sunoano has joined #zope3-dev15:50
*** J1m_ has joined #zope3-dev16:00
*** jamur2 has joined #zope3-dev16:02
*** lurkymclurkleton has joined #zope3-dev16:04
*** vaab has left #zope3-dev16:05
*** junkafarian_ is now known as junkafarian16:10
*** drudi has joined #zope3-dev16:17
*** redir has joined #zope3-dev16:42
*** dunny has quit IRC16:47
*** malthe|away is now known as malthe16:48
*** dunny has joined #zope3-dev16:49
*** dunny has quit IRC16:49
*** kursor has joined #zope3-dev17:11
*** srichter has joined #zope3-dev17:13
*** ChanServ sets mode: +o srichter17:13
*** jpcw has quit IRC17:18
*** dvschramm has joined #zope3-dev17:20
*** jdobrien has quit IRC17:22
*** kursor has quit IRC17:26
*** jpcw has joined #zope3-dev17:26
*** kursor has joined #zope3-dev17:26
*** goschtl has quit IRC17:39
*** J1m_ has quit IRC17:40
*** J1m_ has joined #zope3-dev17:43
*** nathany has joined #zope3-dev17:45
*** davisagli has joined #zope3-dev17:50
*** gary_poster is now known as gary_poster_brb17:54
*** redir_ has joined #zope3-dev17:58
*** kursor has quit IRC18:03
*** Theuni1 has quit IRC18:04
*** kursor has joined #zope3-dev18:04
*** pcardune has joined #zope3-dev18:04
*** redir has quit IRC18:05
*** srichter has quit IRC18:07
*** gary_poster_brb is now known as gary_poster18:10
*** pcardune has quit IRC18:10
*** kursor has quit IRC18:12
*** kursor has joined #zope3-dev18:12
*** J1m_ has quit IRC18:15
*** davisagli has quit IRC18:16
*** J1m_ has joined #zope3-dev18:19
*** jukart has quit IRC18:31
*** junkafarian_ has joined #zope3-dev18:48
*** projekt01 has quit IRC18:54
*** davisagli has joined #zope3-dev18:55
*** __mac__ has quit IRC18:56
*** J1m_ is now known as J1m18:57
*** ccomb has joined #zope3-dev18:59
*** junkafarian has quit IRC19:01
*** Theuni1 has joined #zope3-dev19:03
*** mgedmin has joined #zope3-dev19:24
*** stub has quit IRC19:25
*** ignas has quit IRC19:27
*** Theuni1 has quit IRC19:38
*** junkafarian_ has quit IRC20:00
*** sweh has quit IRC20:00
*** mkerrin has quit IRC20:08
*** __mac__ has joined #zope3-dev20:20
*** pcardune has joined #zope3-dev20:21
*** srichter has joined #zope3-dev20:25
*** ChanServ sets mode: +o srichter20:25
*** pcardune has quit IRC20:28
*** aaronv has quit IRC20:47
*** kursor_ has joined #zope3-dev20:54
*** kursor_ has quit IRC20:55
*** alecm has joined #zope3-dev20:55
*** kursor_ has joined #zope3-dev20:56
*** srichter has quit IRC20:57
*** kursor has quit IRC20:57
*** srichter has joined #zope3-dev20:59
*** ChanServ sets mode: +o srichter20:59
*** __mac__ has quit IRC21:08
*** __mac__ has joined #zope3-dev21:13
*** hazmat has joined #zope3-dev21:26
*** ChanServ sets mode: +o hazmat21:26
*** ccomb has quit IRC21:29
*** ccomb has joined #zope3-dev21:30
*** kursor_ has quit IRC21:32
*** kursor has joined #zope3-dev21:32
*** menesis has quit IRC21:39
*** ccomb has quit IRC21:54
*** ccomb has joined #zope3-dev21:54
*** pcardune has joined #zope3-dev21:55
*** greenman has joined #zope3-dev21:57
*** kursor has quit IRC22:02
*** kursor has joined #zope3-dev22:03
*** sunoano has quit IRC22:03
*** sunoano has joined #zope3-dev22:04
*** kursor has quit IRC22:10
*** mgedmin has quit IRC22:11
*** gary_poster is now known as gary_poster_fud22:14
*** greenman has quit IRC22:15
*** aaronv has joined #zope3-dev22:19
*** agroszer has quit IRC22:24
*** srichter has quit IRC22:24
*** jdobrien has joined #zope3-dev22:39
*** pcardune has quit IRC22:48
*** greenman has joined #zope3-dev22:57
*** __mac__ has quit IRC22:59
*** ccomb has quit IRC23:00
*** ccomb has joined #zope3-dev23:01
*** markusleist has quit IRC23:08
*** sweh has joined #zope3-dev23:15
*** srichter has joined #zope3-dev23:26
*** ChanServ sets mode: +o srichter23:26
*** Theuni1 has joined #zope3-dev23:38
*** gary_poster_fud is now known as gary_poster23:38
*** sunoano has quit IRC23:39
*** ccomb has quit IRC23:43
*** ccomb has joined #zope3-dev23:45
*** Theuni1 has quit IRC23:45
*** davisagli is now known as davi|lunch23:48
*** Theuni1 has joined #zope3-dev23:49
*** sunoano has joined #zope3-dev23:51

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