pcardune | Theuni1: this thread from ZODB-Dev looks like the problem: http://mail.zope.org/pipermail/zodb-dev/2002-February/002250.html | 00:00 |
---|---|---|
Theuni1 | yeah, rings a bell | 00:00 |
Theuni1 | not too loudly though ;) | 00:01 |
pcardune | I'm a bit fuzzy on how OOBTrees work in general | 00:01 |
Theuni1 | IIRC you need to watch out for the same issues with using objects as btree keys as you would for dicts | 00:02 |
benji | Theuni1: you do recall correctly | 00:07 |
Theuni1 | benji: was it identical or are the some deviations I don't remember? | 00:08 |
benji | identical, as far as I know | 00:08 |
benji | you have to make sure the keys have a hash that doesn't change | 00:08 |
pcardune | what are the issues with using objects as dictionary keys? | 00:08 |
benji | the hash can't change ;) | 00:09 |
benji | with dictionaries it usually works because object hashs default to the ID, which is derrived from the memory address | 00:09 |
benji | since that can't change during a program run, you don't have a problem | 00:09 |
pcardune | right | 00:09 |
pcardune | persistent objects are where the trouble comes | 00:10 |
benji | right | 00:10 |
Theuni1 | also, the hashes must be unique | 00:10 |
Theuni1 | the code you referenced has pretty strong collision chances | 00:10 |
Theuni1 | the one from thomas | 00:10 |
benji | it'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 |
pcardune | but OOBTrees don't do that | 00:11 |
Theuni1 | the OID would work for simple cases I guess | 00:11 |
benji | yep | 00:11 |
pcardune | well, this problem recently came up when we switched from using mapping storage to filestorage | 00:11 |
pcardune | and that would explain why it's a bit hard to test... | 00:11 |
pcardune | any tips on the best way to test something like this? | 00:12 |
Theuni1 | either stochastically (which makes it slow) or some tedious work to force the collision | 00:13 |
Theuni1 | i wonder why btrees should behave different in mappingstorage/filestorage | 00:14 |
pcardune | Theuni1: glad to hear that I'm not the only one wondering that :) | 00:15 |
Theuni1 | does mappingstorage do the whole mvcc dance with old revisions and transaction history? | 00:15 |
Theuni1 | I'm a bit tired currently and need to go to bed soon ... | 00:15 |
benji | they 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 problems | 00:16 |
pcardune | benji: but don't the objects kind of get "persisted" by being pickled and then unpickled? | 00:16 |
Theuni1 | benji: the storage API should abstract that away so the objects would actually change | 00:17 |
benji | I don't think mapping storage pickles anything | 00:17 |
Theuni1 | it has to | 00:17 |
pcardune | just that it gets pickled to and from memory rather than disk | 00:17 |
* benji goes to look at the source | 00:17 | |
Theuni1 | it's not the task of the storage to do that | 00:17 |
Theuni1 | the storage never sees anything else | 00:17 |
Theuni1 | I fiddled with that API a lot and I'm pretty sure about most of it by now ;) | 00:17 |
benji | yep, it deals only in pickles; therefore I have no idea why pcardune is seeing differences | 00:19 |
benji | hmm, 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 |
Theuni1 | yup | 00:22 |
Theuni1 | also: when connections change due to threading, this wouldn't hold anymore. | 00:22 |
Theuni1 | i've gotta go to bed now :) | 00:23 |
* Theuni1 waves | 00:23 | |
benji | pcardune: if you can make a short script that demonstrates the problem, I'd be interested in taking a look | 00:23 |
benji | g'night Theuni1 | 00:23 |
Theuni1 | if you take it to the zodb list i'd be happy to have a look too | 00:23 |
pcardune | benji: i'll try... was very very hard for us to reproduce it | 00:23 |
*** Theuni1 has quit IRC | 00:23 | |
*** aaronv has quit IRC | 00:26 | |
*** mintsauce has quit IRC | 00:27 | |
*** gary_poster has quit IRC | 00:32 | |
*** JaRoel|4D has joined #zope3-dev | 00:34 | |
*** davisagli has joined #zope3-dev | 00:34 | |
*** drudi has quit IRC | 00:38 | |
*** drudi has joined #zope3-dev | 00:41 | |
*** davisagli has quit IRC | 00:44 | |
*** aaronv has joined #zope3-dev | 00:55 | |
*** aaronv_ has joined #zope3-dev | 00:57 | |
*** redir has quit IRC | 00:57 | |
*** malthe is now known as malthe|Zzz | 00:57 | |
*** lurkymclurkleton has quit IRC | 01:06 | |
*** benji has quit IRC | 01:07 | |
*** aaronv__ has joined #zope3-dev | 01:08 | |
*** aaronv_ has quit IRC | 01:08 | |
*** ccomb has quit IRC | 01:12 | |
*** davisagli has joined #zope3-dev | 01:14 | |
*** aaronv has quit IRC | 01:18 | |
*** romanofski has joined #zope3-dev | 01:21 | |
*** aaronv__ has quit IRC | 01:23 | |
*** davisagli has quit IRC | 01:23 | |
*** romanofski has quit IRC | 01:35 | |
*** jamur2 has quit IRC | 01:45 | |
*** pcardune_ has joined #zope3-dev | 01:46 | |
*** redir has joined #zope3-dev | 01:56 | |
*** drudi has quit IRC | 02:02 | |
*** redir_ has joined #zope3-dev | 02:06 | |
*** nathany has quit IRC | 02:11 | |
*** J1m has quit IRC | 02:15 | |
*** febb has joined #zope3-dev | 02:32 | |
*** jhauser_ has joined #zope3-dev | 03:33 | |
*** redir has quit IRC | 03:34 | |
*** jhauser has quit IRC | 03:34 | |
*** dunny has quit IRC | 03:47 | |
*** aaronv has joined #zope3-dev | 04:11 | |
*** davisagli has joined #zope3-dev | 04:58 | |
*** pcardune has quit IRC | 05:07 | |
*** dunny has joined #zope3-dev | 05:19 | |
*** dunny has quit IRC | 05:40 | |
*** pcardune_ has quit IRC | 05:44 | |
*** pcardune has joined #zope3-dev | 05:59 | |
*** redir has joined #zope3-dev | 06:04 | |
*** dunny has joined #zope3-dev | 06:08 | |
*** dunny has quit IRC | 06:09 | |
*** allisterb__ has joined #zope3-dev | 06:28 | |
*** stub has joined #zope3-dev | 06:30 | |
*** pcardune has quit IRC | 06:32 | |
*** allisterb_ has quit IRC | 06:47 | |
*** alecm has quit IRC | 06:47 | |
*** linmyat has joined #zope3-dev | 06:50 | |
*** greenman has quit IRC | 06:50 | |
*** pcardune has joined #zope3-dev | 06:52 | |
*** kaeru has quit IRC | 06:53 | |
*** allisterb_ has joined #zope3-dev | 07:26 | |
*** pcardune has quit IRC | 07:40 | |
*** allisterb__ has quit IRC | 07:43 | |
*** sunoano has quit IRC | 07:45 | |
*** sunoano has joined #zope3-dev | 07:46 | |
*** dunny_ has joined #zope3-dev | 07:48 | |
*** jdobrien has quit IRC | 07:50 | |
*** dunny_ has quit IRC | 08:04 | |
*** pcardune has joined #zope3-dev | 08:08 | |
*** pcardune has quit IRC | 08:10 | |
*** dunny has joined #zope3-dev | 08:13 | |
*** sweh has joined #zope3-dev | 08:13 | |
*** jukart has joined #zope3-dev | 08:23 | |
*** agroszer has joined #zope3-dev | 08:26 | |
*** pcardune has joined #zope3-dev | 08:35 | |
*** greenman has joined #zope3-dev | 08:35 | |
*** pcardune has quit IRC | 08:35 | |
*** dunny has quit IRC | 08:40 | |
*** dunny has joined #zope3-dev | 08:43 | |
*** pcardune has joined #zope3-dev | 08:45 | |
*** sweh has quit IRC | 08:57 | |
*** dunny has quit IRC | 09:02 | |
*** __mac__ has joined #zope3-dev | 09:07 | |
*** Theuni1 has joined #zope3-dev | 09:07 | |
*** sweh has joined #zope3-dev | 09:12 | |
*** romanofski has joined #zope3-dev | 09:12 | |
*** redir has quit IRC | 09:22 | |
*** markusleist has quit IRC | 09:29 | |
*** pcardune has quit IRC | 09:31 | |
*** febb has quit IRC | 09:40 | |
*** ccomb has joined #zope3-dev | 09:43 | |
*** alecm has joined #zope3-dev | 10:03 | |
*** goschtl has joined #zope3-dev | 10:04 | |
*** davisagli has quit IRC | 10:22 | |
*** ccomb has quit IRC | 10:30 | |
*** jpcw has joined #zope3-dev | 10:30 | |
*** ccomb has joined #zope3-dev | 10:30 | |
*** redir_ has quit IRC | 10:31 | |
*** kaeru has joined #zope3-dev | 10:33 | |
*** malthe|Zzz is now known as malthe | 10:39 | |
*** Theuni1 has quit IRC | 10:57 | |
*** Theuni1 has joined #zope3-dev | 10:59 | |
*** mintsauce has joined #zope3-dev | 11:09 | |
*** junkafarian_ has joined #zope3-dev | 11:16 | |
*** junkafarian__ has joined #zope3-dev | 11:17 | |
*** junkafarian has quit IRC | 11:17 | |
*** greenman has quit IRC | 11:18 | |
*** Theuni1 has quit IRC | 11:20 | |
*** greenman has joined #zope3-dev | 11:22 | |
*** dunny has joined #zope3-dev | 11:22 | |
*** ccomb has quit IRC | 11:24 | |
*** junkafarian_ has quit IRC | 11:35 | |
*** alecm has quit IRC | 11:37 | |
*** __mac__ has quit IRC | 11:54 | |
*** __mac__ has joined #zope3-dev | 11:54 | |
*** junkafarian__ is now known as junkafarian | 12:09 | |
*** mkerrin has joined #zope3-dev | 12:11 | |
*** pelle___ has joined #zope3-dev | 12:12 | |
*** markusleist has joined #zope3-dev | 12:16 | |
*** pelle____ has joined #zope3-dev | 12:29 | |
*** pelle__ has quit IRC | 12:29 | |
goschtl | hi i search for an example of a z3c.form widget for zope.schema.Dict Fields. any pointers? | 12:30 |
*** pelle___ has quit IRC | 12:46 | |
*** linmyat has quit IRC | 12:51 | |
*** greenman has quit IRC | 12:56 | |
*** sweh has quit IRC | 13:02 | |
*** sweh has joined #zope3-dev | 13:24 | |
*** ignas has joined #zope3-dev | 13:36 | |
*** aaronv has quit IRC | 13:41 | |
*** kaeru has quit IRC | 14:09 | |
*** Theuni1 has joined #zope3-dev | 14:15 | |
*** redir has joined #zope3-dev | 14:17 | |
goschtl | Hi what is the recommended way of changing the size for a z3c.Form Text Widget? | 14:34 |
*** kaeru has joined #zope3-dev | 14:39 | |
*** benji has joined #zope3-dev | 14:40 | |
*** kaeru has quit IRC | 14:45 | |
*** romanofski has quit IRC | 14:47 | |
*** projekt01 has joined #zope3-dev | 14:51 | |
*** multani has quit IRC | 14:52 | |
*** jdobrien has joined #zope3-dev | 14:52 | |
*** lamike has joined #zope3-dev | 14:53 | |
*** lamike has left #zope3-dev | 14:53 | |
*** hazmat has quit IRC | 14:59 | |
goschtl | projekt01: sorry for stupid question but was is the best way to change size and maxlength with z3c.form? | 15:01 |
goschtl | updateWidgets? | 15:01 |
srichter | goschtl: CSS :-) | 15:12 |
goschtl | srichter: OK danke.... | 15:13 |
srichter | goschtl: we specifically provide good CSS classes and ids in the rendered widget, so that CSS can be used for pretty much any use case | 15:15 |
goschtl | srichter: ok makes sense, thanks | 15:17 |
*** junkafarian_ has joined #zope3-dev | 15:17 | |
*** kaeru has joined #zope3-dev | 15:23 | |
*** kaeru has quit IRC | 15:30 | |
*** aaronv has joined #zope3-dev | 15:33 | |
*** junkafarian has quit IRC | 15:34 | |
*** srichter has quit IRC | 15:44 | |
*** gary_poster has joined #zope3-dev | 15:45 | |
*** redir has quit IRC | 15:46 | |
*** malthe is now known as malthe|away | 15:46 | |
*** sunoano has quit IRC | 15:47 | |
*** sunoano has joined #zope3-dev | 15:50 | |
*** J1m_ has joined #zope3-dev | 16:00 | |
*** jamur2 has joined #zope3-dev | 16:02 | |
*** lurkymclurkleton has joined #zope3-dev | 16:04 | |
*** vaab has left #zope3-dev | 16:05 | |
*** junkafarian_ is now known as junkafarian | 16:10 | |
*** drudi has joined #zope3-dev | 16:17 | |
*** redir has joined #zope3-dev | 16:42 | |
*** dunny has quit IRC | 16:47 | |
*** malthe|away is now known as malthe | 16:48 | |
*** dunny has joined #zope3-dev | 16:49 | |
*** dunny has quit IRC | 16:49 | |
*** kursor has joined #zope3-dev | 17:11 | |
*** srichter has joined #zope3-dev | 17:13 | |
*** ChanServ sets mode: +o srichter | 17:13 | |
*** jpcw has quit IRC | 17:18 | |
*** dvschramm has joined #zope3-dev | 17:20 | |
*** jdobrien has quit IRC | 17:22 | |
*** kursor has quit IRC | 17:26 | |
*** jpcw has joined #zope3-dev | 17:26 | |
*** kursor has joined #zope3-dev | 17:26 | |
*** goschtl has quit IRC | 17:39 | |
*** J1m_ has quit IRC | 17:40 | |
*** J1m_ has joined #zope3-dev | 17:43 | |
*** nathany has joined #zope3-dev | 17:45 | |
*** davisagli has joined #zope3-dev | 17:50 | |
*** gary_poster is now known as gary_poster_brb | 17:54 | |
*** redir_ has joined #zope3-dev | 17:58 | |
*** kursor has quit IRC | 18:03 | |
*** Theuni1 has quit IRC | 18:04 | |
*** kursor has joined #zope3-dev | 18:04 | |
*** pcardune has joined #zope3-dev | 18:04 | |
*** redir has quit IRC | 18:05 | |
*** srichter has quit IRC | 18:07 | |
*** gary_poster_brb is now known as gary_poster | 18:10 | |
*** pcardune has quit IRC | 18:10 | |
*** kursor has quit IRC | 18:12 | |
*** kursor has joined #zope3-dev | 18:12 | |
*** J1m_ has quit IRC | 18:15 | |
*** davisagli has quit IRC | 18:16 | |
*** J1m_ has joined #zope3-dev | 18:19 | |
*** jukart has quit IRC | 18:31 | |
*** junkafarian_ has joined #zope3-dev | 18:48 | |
*** projekt01 has quit IRC | 18:54 | |
*** davisagli has joined #zope3-dev | 18:55 | |
*** __mac__ has quit IRC | 18:56 | |
*** J1m_ is now known as J1m | 18:57 | |
*** ccomb has joined #zope3-dev | 18:59 | |
*** junkafarian has quit IRC | 19:01 | |
*** Theuni1 has joined #zope3-dev | 19:03 | |
*** mgedmin has joined #zope3-dev | 19:24 | |
*** stub has quit IRC | 19:25 | |
*** ignas has quit IRC | 19:27 | |
*** Theuni1 has quit IRC | 19:38 | |
*** junkafarian_ has quit IRC | 20:00 | |
*** sweh has quit IRC | 20:00 | |
*** mkerrin has quit IRC | 20:08 | |
*** __mac__ has joined #zope3-dev | 20:20 | |
*** pcardune has joined #zope3-dev | 20:21 | |
*** srichter has joined #zope3-dev | 20:25 | |
*** ChanServ sets mode: +o srichter | 20:25 | |
*** pcardune has quit IRC | 20:28 | |
*** aaronv has quit IRC | 20:47 | |
*** kursor_ has joined #zope3-dev | 20:54 | |
*** kursor_ has quit IRC | 20:55 | |
*** alecm has joined #zope3-dev | 20:55 | |
*** kursor_ has joined #zope3-dev | 20:56 | |
*** srichter has quit IRC | 20:57 | |
*** kursor has quit IRC | 20:57 | |
*** srichter has joined #zope3-dev | 20:59 | |
*** ChanServ sets mode: +o srichter | 20:59 | |
*** __mac__ has quit IRC | 21:08 | |
*** __mac__ has joined #zope3-dev | 21:13 | |
*** hazmat has joined #zope3-dev | 21:26 | |
*** ChanServ sets mode: +o hazmat | 21:26 | |
*** ccomb has quit IRC | 21:29 | |
*** ccomb has joined #zope3-dev | 21:30 | |
*** kursor_ has quit IRC | 21:32 | |
*** kursor has joined #zope3-dev | 21:32 | |
*** menesis has quit IRC | 21:39 | |
*** ccomb has quit IRC | 21:54 | |
*** ccomb has joined #zope3-dev | 21:54 | |
*** pcardune has joined #zope3-dev | 21:55 | |
*** greenman has joined #zope3-dev | 21:57 | |
*** kursor has quit IRC | 22:02 | |
*** kursor has joined #zope3-dev | 22:03 | |
*** sunoano has quit IRC | 22:03 | |
*** sunoano has joined #zope3-dev | 22:04 | |
*** kursor has quit IRC | 22:10 | |
*** mgedmin has quit IRC | 22:11 | |
*** gary_poster is now known as gary_poster_fud | 22:14 | |
*** greenman has quit IRC | 22:15 | |
*** aaronv has joined #zope3-dev | 22:19 | |
*** agroszer has quit IRC | 22:24 | |
*** srichter has quit IRC | 22:24 | |
*** jdobrien has joined #zope3-dev | 22:39 | |
*** pcardune has quit IRC | 22:48 | |
*** greenman has joined #zope3-dev | 22:57 | |
*** __mac__ has quit IRC | 22:59 | |
*** ccomb has quit IRC | 23:00 | |
*** ccomb has joined #zope3-dev | 23:01 | |
*** markusleist has quit IRC | 23:08 | |
*** sweh has joined #zope3-dev | 23:15 | |
*** srichter has joined #zope3-dev | 23:26 | |
*** ChanServ sets mode: +o srichter | 23:26 | |
*** Theuni1 has joined #zope3-dev | 23:38 | |
*** gary_poster_fud is now known as gary_poster | 23:38 | |
*** sunoano has quit IRC | 23:39 | |
*** ccomb has quit IRC | 23:43 | |
*** ccomb has joined #zope3-dev | 23:45 | |
*** Theuni1 has quit IRC | 23:45 | |
*** davisagli is now known as davi|lunch | 23:48 | |
*** Theuni1 has joined #zope3-dev | 23:49 | |
*** sunoano has joined #zope3-dev | 23:51 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!