IRC log of #zope3-dev for Tuesday, 2008-01-22

*** ktwilight_ has joined #zope3-dev00:00
*** whit has joined #zope3-dev00:00
*** natea|boston has quit IRC00:12
*** ktwilight has quit IRC00:13
*** jeffk has quit IRC00:13
*** timte has quit IRC00:19
*** wreutz_ has joined #zope3-dev00:19
*** wreutz has quit IRC00:20
*** jodok_ has joined #zope3-dev00:21
*** greenman has joined #zope3-dev00:23
*** timte has joined #zope3-dev00:25
*** jodok_ has quit IRC00:27
*** natea|boston has joined #zope3-dev00:29
*** wreutz has joined #zope3-dev00:31
*** timte has quit IRC00:31
*** wreutz_ has quit IRC00:32
*** jodok_ has joined #zope3-dev00:34
*** timte has joined #zope3-dev00:35
*** jodok has quit IRC00:35
*** flox has quit IRC00:36
*** jeffk has joined #zope3-dev00:37
*** greenman has quit IRC00:57
*** harobed has quit IRC01:01
malthein Grok, is there an event we can listen to that will be fired once the Application object is set up entirely (in particular the local utilities set up by the grokkers)?01:01
*** ryanbard has quit IRC01:02
*** jodok_ has quit IRC01:03
*** wreutz has quit IRC01:03
*** jodok has joined #zope3-dev01:03
*** wreutz has joined #zope3-dev01:03
*** malthe_ has joined #zope3-dev01:05
malthe_hmm someone closed my computer grr01:05
*** lucielejard has quit IRC01:08
*** danielblackburn has quit IRC01:09
*** danielblackburn has joined #zope3-dev01:10
*** greenman has joined #zope3-dev01:13
*** wreutz has quit IRC01:13
*** malthe_ has quit IRC01:14
*** malthe has left #zope3-dev01:14
*** norro has quit IRC01:22
*** danielblackburn has quit IRC01:30
*** hazmat has quit IRC01:34
*** deo has quit IRC01:44
*** quodt has quit IRC01:48
*** jukart has quit IRC01:51
*** jodok has quit IRC01:57
*** whit has quit IRC02:00
*** rmarianski has quit IRC02:04
*** whit has joined #zope3-dev02:11
*** danielblackburn has joined #zope3-dev02:13
*** tarek has quit IRC02:15
*** dobee has quit IRC02:27
*** timte has quit IRC02:33
*** whitmo_ has joined #zope3-dev02:38
*** rmarianski has joined #zope3-dev02:40
*** whit has quit IRC02:55
*** rmarianski has quit IRC03:03
*** dobee has joined #zope3-dev03:10
*** whitmo_ has quit IRC03:12
*** jukart has joined #zope3-dev03:20
*** dobee has quit IRC03:20
*** dobee has joined #zope3-dev03:20
*** dobee has quit IRC03:21
*** hazmat has joined #zope3-dev03:22
*** ChanServ sets mode: +o hazmat03:22
*** whit has joined #zope3-dev03:28
*** rcrafton_ has quit IRC03:30
*** whit has quit IRC03:45
*** whit has joined #zope3-dev03:48
*** andres_f has joined #zope3-dev04:06
*** andres has quit IRC04:07
*** jukart has quit IRC04:08
*** roym-home has joined #zope3-dev04:08
*** roym-home has left #zope3-dev04:09
*** whit has quit IRC04:22
*** niemeyer has quit IRC04:25
*** greenman has quit IRC04:31
*** rcrafton has joined #zope3-dev04:41
*** natea|boston has quit IRC04:54
*** jeffk has quit IRC05:21
*** philiKON has joined #zope3-dev05:50
*** stub has joined #zope3-dev05:58
*** philiKON_ has quit IRC06:05
*** natea_ has joined #zope3-dev06:29
*** natea|boston has joined #zope3-dev06:31
*** natea__ has joined #zope3-dev06:36
*** natea___ has joined #zope3-dev06:40
*** natea____ has joined #zope3-dev06:46
*** natea__ has quit IRC06:47
*** natea_ has quit IRC06:47
*** greenman has joined #zope3-dev06:48
*** natea|boston has quit IRC06:54
*** natea___ has quit IRC06:57
*** natea____ has quit IRC07:06
*** baijum has joined #zope3-dev07:09
*** natea|boston has joined #zope3-dev07:10
*** amit_am has joined #zope3-dev07:21
*** natea_ has joined #zope3-dev07:22
*** natea_ has quit IRC07:23
*** afd_ has joined #zope3-dev07:27
*** natea__ has joined #zope3-dev07:28
*** natea|boston has quit IRC07:28
*** natea___ has joined #zope3-dev07:34
*** natea___ has quit IRC07:35
*** natea|boston has joined #zope3-dev07:35
*** natea___ has joined #zope3-dev07:37
*** natea__ has quit IRC07:47
*** natea|boston has quit IRC07:55
*** natea___ has quit IRC08:08
*** natea|boston has joined #zope3-dev08:08
*** natea_ has joined #zope3-dev08:22
*** natea|boston has quit IRC08:39
*** greenman has quit IRC08:40
*** greenman has joined #zope3-dev08:44
*** rcrafton has quit IRC08:55
*** rcrafton has joined #zope3-dev08:55
*** afd_ has quit IRC09:03
*** natea_ has quit IRC09:06
*** pyqwer has joined #zope3-dev09:26
*** afd_ has joined #zope3-dev09:34
*** MJ has joined #zope3-dev09:36
*** MJ has quit IRC09:37
*** jpcw2002 has left #zope3-dev09:38
*** MJ has joined #zope3-dev09:39
*** MJ is now known as MJ|train09:39
*** romanofski has joined #zope3-dev09:40
*** sorin has joined #zope3-dev09:47
*** sorin is now known as sorindregan09:48
*** kursor has joined #zope3-dev09:59
*** toutpt has joined #zope3-dev09:59
*** mcdonc has quit IRC10:04
*** mcdonc has joined #zope3-dev10:05
*** jodok has joined #zope3-dev10:05
*** mcdonc has quit IRC10:05
*** mcdonc has joined #zope3-dev10:06
*** MJ|train has quit IRC10:15
*** d2m has joined #zope3-dev10:15
*** pelle_ has joined #zope3-dev10:18
*** greenman has quit IRC10:23
*** greenman has joined #zope3-dev10:25
*** stub has quit IRC10:27
*** stub has joined #zope3-dev10:28
*** wreutz has joined #zope3-dev10:32
*** wreutz has quit IRC10:33
*** wreutz has joined #zope3-dev10:34
*** agroszer has joined #zope3-dev10:42
*** jodok has quit IRC10:42
*** jodok has joined #zope3-dev10:43
*** __mac__ has joined #zope3-dev10:53
*** jpcw2002 has joined #zope3-dev10:55
*** flox has joined #zope3-dev11:00
*** norro has joined #zope3-dev11:06
*** MJ has joined #zope3-dev11:07
*** kursor_ has joined #zope3-dev11:12
*** kursor has quit IRC11:19
*** timte has joined #zope3-dev11:28
*** quodt has joined #zope3-dev11:28
*** dobee has joined #zope3-dev11:34
*** jukart has joined #zope3-dev11:45
*** rmarianski has joined #zope3-dev11:56
*** yvl has joined #zope3-dev11:58
*** quodt has quit IRC11:58
*** quodt has joined #zope3-dev12:03
*** rmarianski has quit IRC12:05
*** quodt has quit IRC12:08
*** tarek has joined #zope3-dev12:13
*** quodt has joined #zope3-dev12:14
*** quodt has quit IRC12:18
*** zagy has quit IRC12:19
*** Theuni has quit IRC12:19
*** __mac__ has quit IRC12:21
*** romanofski has quit IRC12:21
*** zagy has joined #zope3-dev12:21
*** __mac__ has joined #zope3-dev12:21
*** rmarianski has joined #zope3-dev12:24
*** zagy has quit IRC12:24
*** zagy has joined #zope3-dev12:25
*** regebro has joined #zope3-dev12:44
*** goschtl has joined #zope3-dev12:44
*** toutpt has quit IRC12:48
*** goschtl_ has joined #zope3-dev12:51
*** mkerrin has joined #zope3-dev12:58
*** dunny has quit IRC13:00
*** toutpt has joined #zope3-dev13:01
*** romanofski has joined #zope3-dev13:01
*** goschtl has quit IRC13:09
*** andres_f has quit IRC13:14
*** wreutz has quit IRC13:19
*** wreutz has joined #zope3-dev13:19
*** quodt has joined #zope3-dev13:19
*** andres_f has joined #zope3-dev13:27
*** niemeyer has joined #zope3-dev13:30
*** alga has joined #zope3-dev13:33
*** whit has joined #zope3-dev13:33
*** stub has quit IRC13:36
*** stu1 has joined #zope3-dev13:36
*** stu1 is now known as stub13:36
*** ignas has joined #zope3-dev13:39
*** pcardune has joined #zope3-dev13:51
*** kursor has joined #zope3-dev13:54
*** kursor_ has quit IRC13:55
*** rocky has joined #zope3-dev13:59
*** pcardune has quit IRC14:01
pyqwerafd_: In case you are interested in my yesterday's vocabulary problem: There were some problems in my test setup, now it works.14:04
*** dokai has quit IRC14:04
afd_pyqwer: that I knew... what sort of problems did you have with your test setup?14:04
pyqwerafd_: I don't know exactly, yesterday I copied some of the <include package...> directives from another project, now I simply do a <include package="zope.app.zcmlfiles" />14:06
afd_cool14:06
pyqwerWell, and <include package="zope.app.zcmlfiles" file="ftesting.zcml" /> and some other packages that are specific to my project.14:06
pyqwerBut the majority zope stuff, e.g. zope.component etc. is included via zope.app.zcmlfiles, it seems.14:07
afd_yes14:07
pyqwerBtw, do you know of a simple way to check what permissions a principal has on an object?14:07
pyqwerI declared some permissions, roles and principals and now I'd like to test if security really works.14:08
*** natea|boston has joined #zope3-dev14:08
afd_look at zope.securitypolicy.interfaces.IPrincipalPermissionMap14:08
afd_I think you can do IPrincipalPermissionMap(context)14:09
pyqwerHmmm, ok, no, that's not really what I need: I'd like to find out if a principal can acutally write/read an object/view14:10
*** dokai has joined #zope3-dev14:10
pyqwerI found canAccess/canWrite from zope.security, but for that I have to set up an interaction, which is quite complicated.14:11
pyqwerMoreover, it seems not to work here (everything seems to be allowed here).14:11
afd_you might do it from functional tests, where you can login with different users and try the edit views14:12
pyqwerSo, you mean, call some magic login function with appropriate data, which will then set up the interaction and try to access the edit view in my doctest?14:13
afd_you know you can do something like  >>> browser.addHeader('Authorization', 'Basic user:pwd')14:14
afd_what I'm saying if you can have your principals created in the user source and login with them and test those views14:14
*** natea|boston is now known as natea14:14
afd_if you don't want to setup interfaction for unit testing14:15
afd_interfaction = interaction14:15
*** andres_f has quit IRC14:15
pyqwerOk, good idea.14:15
*** danielblackburn has quit IRC14:15
*** whit has quit IRC14:19
*** whitmo has joined #zope3-dev14:28
*** andres_f has joined #zope3-dev14:32
*** andres_f is now known as andres14:33
*** mgedmin has joined #zope3-dev14:39
*** afd_ has quit IRC14:40
*** natea has quit IRC14:46
*** reco has joined #zope3-dev14:50
*** ccomb has quit IRC14:58
*** srichter has quit IRC15:05
*** jodok has quit IRC15:05
*** goschtl_ has quit IRC15:16
*** goschtl has joined #zope3-dev15:16
*** benji has joined #zope3-dev15:18
*** harobed has joined #zope3-dev15:19
*** afd_ has joined #zope3-dev15:19
*** benji has joined #zope3-dev15:20
*** jeffk has joined #zope3-dev15:26
*** nerdalert has joined #zope3-dev15:28
*** pcardune has joined #zope3-dev15:34
*** benji has quit IRC15:42
nerdalerthello, I've run into a little problem where I'm trying to move an object from one zodb to another, like a backup.  is there anyone here that can offer some advice?15:43
pyqwerFor zope2, there's some export facility, I think.15:43
bigkevmcdsame version of zope?15:43
bigkevmcdand they pretty much have to be identical15:43
pyqwerFor ZODB only, well, perhaps you have success with serializing the object (e.g. with pickle()) and write it to a file.15:44
*** greenman has quit IRC15:45
pyqwernerdalert: But, well, another idea: Why not simply open both ZODB databases and copy the object?15:46
nerdalertI'm using zope 3, and I've run into problems with using regular pickle15:46
nerdalertpyqwer: I tried that actually, and what gets copied is a reference15:46
pyqwernerdalert: What about copy.deepcopy()?15:47
nerdalertI tried that also.  I think python's copy module wants to copy the _p_* attributes15:47
mgedminpyqwer: will that work?15:47
mgedminI once copied an object in Zope 2 from /temp_folder to /15:47
mgedminand got a broken object as a result15:48
pyqwermgedmin: No clue, that was just a suggestion...15:48
*** benji has joined #zope3-dev15:48
pyqwerBut, AFAIK, it's possible to define a __copy__ method, which can be used to clone the object.15:48
nerdalertwhere I'm at now, I'm wondering if there's a built-in way to do what I want, or if I need to implement __copy__/__deepcopy__ for all my objects15:48
pyqwerSo, a copy(myobj) will do it.15:48
nerdalertyeah, I'm about to go that route, but I think I need to override __copy__ for all my objs15:49
pyqwernerdalert: maybe there's some inheritance trick, or mixin class possible?15:50
nerdalertI don't know if there is an inheritance trick15:50
pyqwerI mean, some super-class that implements a version for __copy__ that will work for all your objects.15:51
nerdalertI was thinking about doing it with adapters, actually15:51
nerdalertmake an ICopy adapter for things I want to copy15:51
pyqwerHmmm, then you'd also have to implement some copy function for each method.15:51
nerdalertbut I think in general, it's the concrete classes that will best know how to copy themselves15:51
pyqwerI think so, too.15:52
nerdalertI mean, say I implement some __copy__ that works on all lists15:53
nerdalertit would have to know about the subclasses of list to know whether to build a linked-list or array-list etc...15:53
afd_what about fssync? Not that I've ever used it, but my impression is that it fits the requirements15:53
nerdalerthaven't heard of fssync15:53
nerdalertI'm not trying to copy an entire filestorage though15:54
mgedminit was never completed15:54
*** jodok has joined #zope3-dev15:54
nerdalertjust one object graph contained within a storage15:54
mgedminI think you'll end up doing an application-specific data serialization format15:54
afd_http://svn.zope.org/zope.app.fssync/trunk/README.txt?rev=79751&view=markup15:54
pyqwerI'm merely thinking of implementing a __copy__ function that merely omits the _p_* attributes.15:54
mgedminone view to export everything to, say, XML; another view to parse that XML and create objects15:54
nerdalertmgedmin: yeah, I wanted to avoid that if possible, but signs are indeed pointing to yes15:55
pyqwer*Maybe* twisted's perspective broker could help.15:55
pyqwerBut I don't know how/if this integrates with zope3.15:56
*** yvl has left #zope3-dev15:56
mgedminobject databases have some downsides...15:56
pyqwermgedmin: Well, yes, but actually, I'm wondering that no one thought about this.15:56
pyqwerCopying objects is not uncommon.15:56
nerdalertpyqwer: exactly!15:57
mgedminthere is copy & paste in zmi15:57
mgedminit's implemented in a rather interesting way15:57
nerdalertthat's why I'm here before I go on a __copy__ implementation binge =P15:57
mgedminthere's also zc.copy, I think15:57
mgedminthe ZMI object copier uses pickles with a custom hook that deeply copies objects contained within the starting object in the __parent__ hierarchy, and keeps links to objects outside it15:58
nerdalertafd_: fssync looks interesting.  I'll have to read up on it some more15:58
*** danielblackburn_ has joined #zope3-dev15:59
nerdalertmgedmin: that may be a problem too, since eventually the __parent__ relationship points to something that I wouldn't want copied15:59
nerdalertmgedmin: I want to start a copy and work my way down, not up16:00
mgedminyes16:00
mgedminzope 2 import/export works that way, afaiu16:00
benjipyqwer: I think zc.copy is what you want16:00
mgedminI think it's nerdalert that wants it, not pyqwer16:01
benjihim then ;)16:01
nerdalertbenji: yeah, it's me =P16:01
benjiheh16:01
*** baijum has quit IRC16:09
*** jukart has quit IRC16:12
*** benji_ has joined #zope3-dev16:13
*** benji has quit IRC16:14
*** benji_ is now known as benji16:14
*** kursor has quit IRC16:16
*** MJ has quit IRC16:17
*** J1m has joined #zope3-dev16:21
*** jukart has joined #zope3-dev16:21
*** MJ has joined #zope3-dev16:26
*** rcrafton has quit IRC16:29
*** Theuni has joined #zope3-dev16:30
TheuniJ1m: I'm still trying to get the clientcache issue reproducable.16:30
Theuni(To answer your question from a while ago)16:30
*** lucielejard has joined #zope3-dev16:30
TheuniI found two hotspots that keep coming back: a) eviction of non-current objects with more than one old versions existing b) the filecache's filemap getting inconsistent16:31
Theunijust to let you know ...16:32
* Theuni heads off to get some coffee16:32
*** rcrafton has joined #zope3-dev16:35
*** stub has quit IRC16:35
*** harobed has quit IRC16:36
*** ryanbard has joined #zope3-dev16:37
*** run|home has joined #zope3-dev16:41
*** __mac__ has quit IRC16:52
*** danielblackburn_ has quit IRC16:55
*** nathany has joined #zope3-dev16:57
*** MJ has quit IRC17:03
*** ccomb has joined #zope3-dev17:06
pyqwerHmmm, I set up an interaction, assigned a participation with a principal to it, set it to thread_local and try to check permissions with canAccess.17:10
pyqwerHowever, the result is always "True", which is bad. Any clues why?17:11
*** sp0cksbeard has joined #zope3-dev17:11
*** wreutz_ has joined #zope3-dev17:11
*** wreutz has quit IRC17:13
*** danielblackburn has joined #zope3-dev17:16
*** faassen has joined #zope3-dev17:16
*** jeffk has quit IRC17:25
*** jeffk has joined #zope3-dev17:29
*** pelle_ has quit IRC17:31
*** pelle_ has joined #zope3-dev17:32
*** jodok has quit IRC17:34
*** malthe has joined #zope3-dev17:34
SteveATheuni: ping17:44
*** sorindregan has quit IRC17:46
J1mTheuni, wha?17:46
TheuniSteveA: semi pong17:56
TheuniSteveA: i'll be afk for ~30 minutes17:56
SteveATheuni: ok17:57
*** vod has quit IRC18:09
*** wreutz_ has quit IRC18:09
*** ryanbard has quit IRC18:09
*** benji has quit IRC18:09
*** lisppaste6 has quit IRC18:09
*** bigkevmcd has quit IRC18:09
*** BjornT has quit IRC18:09
*** runyaga_ has quit IRC18:09
*** mweichert has joined #zope3-dev18:11
*** wreutz_ has joined #zope3-dev18:12
*** ryanbard has joined #zope3-dev18:12
*** benji has joined #zope3-dev18:12
*** lisppaste6 has joined #zope3-dev18:12
*** bigkevmcd has joined #zope3-dev18:12
*** BjornT has joined #zope3-dev18:12
*** runyaga_ has joined #zope3-dev18:12
*** natea|boston has joined #zope3-dev18:15
*** dobee has quit IRC18:15
*** vod has joined #zope3-dev18:16
*** J1m has quit IRC18:19
*** alecm has joined #zope3-dev18:21
*** J1m has joined #zope3-dev18:22
*** regebro has quit IRC18:26
*** J1m has quit IRC18:26
*** natea|boston has quit IRC18:28
*** alecm_ has joined #zope3-dev18:29
*** J1m has joined #zope3-dev18:32
*** pyqwer has quit IRC18:34
*** dobee has joined #zope3-dev18:35
*** jodok has joined #zope3-dev18:37
TheuniSteveA: pong18:40
*** natea|boston has joined #zope3-dev18:41
*** alecm has quit IRC18:43
*** goschtl has quit IRC18:47
*** harobed has joined #zope3-dev18:59
*** runyaga_ is now known as run|away19:17
*** acsr has quit IRC19:22
*** MJ has joined #zope3-dev19:25
*** jodok has quit IRC19:26
*** acsr has joined #zope3-dev19:34
*** MJ has quit IRC19:36
*** MJ has joined #zope3-dev19:37
*** pbugni has joined #zope3-dev19:42
*** tarek has quit IRC19:51
*** hexsprite has joined #zope3-dev19:52
*** harobed has quit IRC19:58
*** zagy_ has joined #zope3-dev20:03
*** regebro has joined #zope3-dev20:13
*** wreutz_ has quit IRC20:14
*** zagy has quit IRC20:18
*** natea|boston has quit IRC20:19
*** natea|boston has joined #zope3-dev20:20
*** danielblackburn has quit IRC20:22
*** srichter has joined #zope3-dev20:31
*** ChanServ sets mode: +o srichter20:31
*** regebro has quit IRC20:38
*** mkerrin has quit IRC20:38
*** benji has quit IRC20:43
*** pcardune has quit IRC20:44
*** reco has quit IRC20:44
*** benji has joined #zope3-dev20:46
*** pelle_ has quit IRC20:51
*** tarek has joined #zope3-dev20:52
*** stub has joined #zope3-dev20:52
*** __gotcha has joined #zope3-dev20:53
*** harobed has joined #zope3-dev20:57
*** dunny has joined #zope3-dev21:00
*** wreutz has joined #zope3-dev21:01
*** MJ has quit IRC21:04
*** toutpt has quit IRC21:08
*** toutpt has joined #zope3-dev21:09
*** zagy_ has quit IRC21:14
*** danielblackburn_ has joined #zope3-dev21:14
*** agroszer has quit IRC21:17
*** toutpt has quit IRC21:17
*** quodt_ has joined #zope3-dev21:21
*** quodt has quit IRC21:21
*** whitmo has quit IRC21:34
*** wreutz has quit IRC21:34
*** whit has joined #zope3-dev21:34
*** wreutz has joined #zope3-dev21:34
*** ignas has quit IRC21:40
*** flox has quit IRC21:41
*** jeffk_ has joined #zope3-dev21:41
*** jeffk__ has joined #zope3-dev21:46
*** wreutz has quit IRC21:47
*** danielblackburn_ has quit IRC21:47
*** danielblackburn has joined #zope3-dev21:48
*** afd_ has quit IRC21:48
*** jukart has quit IRC21:49
*** quodt_ has quit IRC21:49
*** rmarianski has quit IRC21:52
*** quodt has joined #zope3-dev21:52
*** jeffk has quit IRC21:56
*** jeffk_ has quit IRC21:59
*** mweichert has quit IRC22:01
*** faassen has left #zope3-dev22:08
*** alga has quit IRC22:18
*** ignas has joined #zope3-dev22:19
*** jeffk__ has quit IRC22:39
*** jukart has joined #zope3-dev22:42
*** andres has quit IRC22:46
*** stub has quit IRC22:46
*** wreutz has joined #zope3-dev22:46
*** whit has quit IRC22:47
*** greenman has joined #zope3-dev22:51
*** ccomb has quit IRC22:58
*** rocky is now known as rocky|away23:12
*** whit has joined #zope3-dev23:19
*** mgedmin has quit IRC23:19
*** sp0cksbeard has quit IRC23:24
*** ignas has quit IRC23:31
*** whit has quit IRC23:36
*** whit has joined #zope3-dev23:37
*** lucielejard has quit IRC23:41
*** nathany has quit IRC23:43
*** quodt has quit IRC23:45
*** nerdalert has quit IRC23:46
*** jinty has joined #zope3-dev23:49
*** jinty has quit IRC23:49
*** ccomb has joined #zope3-dev23:50
*** quodt has joined #zope3-dev23:50
*** Jell-O-Fishi has joined #zope3-dev23:59

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