IRC log of #zope3-dev for Monday, 2007-07-02

*** dobee has joined #zope3-dev00:04
*** dobee has quit IRC00:05
*** dobee has joined #zope3-dev00:07
*** redir has quit IRC00:08
*** edgordon_ has joined #zope3-dev00:20
*** edgordon has quit IRC00:37
norroHi channel. What would be the best way to define user access for a single folder with zope3?00:43
*** mgedmin has quit IRC00:43
*** tomster has quit IRC00:51
norrobtw: 'folder' means zope's folder object, not a file system folder00:52
norroA possible way would be to derive ISpecialFolder from IFolder and defining permissions for this very interface, but that seems a little bit excessive to me. I would have to derive a special interface for every folder I want to define own permissions for.00:54
*** kobold has left #zope3-dev00:54
*** Newfie2007 has quit IRC00:59
*** greenman has joined #zope3-dev01:00
*** natea|sanfran_ has quit IRC01:04
*** dobee has left #zope3-dev01:12
dennis_norro look for zope.app.securitypolicy.interfaces.IPrincipalPermissionManager and friends, define a permission blah.AccessFolder, do IPrincipalPermissionManager( myfolder ).assignPermissionToPrincipal( 'blah.AccessFolder', 'mr_x' )    .. more or less :)01:14
norrodennis_ okay, I will have a look at this. Thank you01:15
dennis_so you dont assign this permission to your principals in the zcml (to the folder _class_) but you do it to the actual folder _object_ you are interested in. If you have philip's book, it's part of the user signup chapter01:17
norroyes, that's exactly what I want to do. So I have to read this chapter again, yet more closely :)01:21
*** jinty has joined #zope3-dev01:22
norrothanks again01:22
norrobye01:22
*** norro has quit IRC01:22
*** andrew_m has quit IRC01:28
*** natea|sanfran has joined #zope3-dev01:29
CSWookieDoes an interaction have to be going for events to to work, or can they work without an interaction?01:34
CSWookies/to to/to/01:34
*** tarek has quit IRC01:48
*** harobed has quit IRC01:51
*** andres has joined #zope3-dev01:55
*** tjs has joined #zope3-dev02:16
*** timte has quit IRC02:27
*** edgordon_ has quit IRC02:35
*** greenman has quit IRC02:43
*** greenman has joined #zope3-dev02:44
*** tomster has joined #zope3-dev02:45
tjsG'day, I posted recently about getting sites and db connection setup in a thread02:46
tjsI got a great answer, but just having trouble finding where exactly in the zope codebase it does this stuff for threads spawned to respond to requests02:47
tjsHow would I go about finding a db connection for my thread?\02:51
*** whit has joined #zope3-dev02:53
philiKON_tjs: conn = db.open()02:53
philiKON_where db is the database object02:53
philiKON_you can get a hold of it by listening to the IDatabaseOpenedEvent02:54
tjsphiliKON_: so if I want to be in the same context as my parent thread, I would just get the path to the current object, pass that into my thread, get the db , establish a connection, traverse the passed in path, try adapting each object along the way to ISiteManager, and any successful adaptions pass to hooks.setSite02:56
tjswould I need to dummy up a request object for things to work?02:56
tjsbasically all I want to do in my thread is have the Catalog logic be able to find the IInitIds util registered with my site so it can do some indexing02:57
*** whit has quit IRC02:59
*** tomster has quit IRC03:41
*** huajie has joined #zope3-dev04:29
*** kleist has joined #zope3-dev04:39
*** roym has quit IRC05:32
*** greenman has quit IRC05:39
*** Ariel_Calzada has joined #zope3-dev05:56
*** alecm has joined #zope3-dev06:01
*** alecm has quit IRC06:06
*** kobold has joined #zope3-dev06:10
*** alecm has joined #zope3-dev06:30
*** cursor has joined #zope3-dev07:12
huajiestupid question, is there anything wrong with the command: svn checkout http://svn.zope.org/z3c.menu/trunk/src/z3c/menu/ ?07:13
huajieget a error : svn: PROPFIND of '/z3c.menu/trunk': 301 Moved (http://svn.zope.org) :(07:14
tjsjust a random guess07:15
tjsbut I bet something was moved07:15
huajieis it really random ? ;)07:16
huajieyou could at least try to randomly guess what has move where :p07:16
*** cursor has quit IRC07:17
*** greenman has joined #zope3-dev07:25
*** huajie has quit IRC07:25
*** dunny has quit IRC07:31
*** huajie has joined #zope3-dev07:35
*** baijum has joined #zope3-dev07:41
*** redir has joined #zope3-dev07:42
*** Ariel_Calzada has quit IRC07:50
*** ghendi has joined #zope3-dev07:52
*** pelle_ has joined #zope3-dev08:03
*** redir has quit IRC08:08
*** jukart has joined #zope3-dev08:39
*** sorindregan has joined #zope3-dev08:40
*** pelle_ has quit IRC08:42
*** pelle_ has joined #zope3-dev08:46
*** yvl has joined #zope3-dev08:46
*** dunny has joined #zope3-dev08:58
*** d2m has joined #zope3-dev09:02
*** naro has joined #zope3-dev09:02
*** pelle_ has quit IRC09:04
*** salfield has quit IRC09:15
*** andres has quit IRC09:16
*** salfield has joined #zope3-dev09:17
*** schwendinger has joined #zope3-dev09:22
*** schwendinger has quit IRC09:33
*** alecm has quit IRC09:47
*** huajie has quit IRC09:56
*** pelle_ has joined #zope3-dev09:59
*** pelle_ has quit IRC10:01
*** pelle_ has joined #zope3-dev10:01
*** kleist is now known as kleist^lurking10:04
*** sorindregan has quit IRC10:11
*** sorindregan has joined #zope3-dev10:12
*** alecm has joined #zope3-dev10:15
*** alecm has quit IRC10:18
*** projekt01 has joined #zope3-dev10:24
*** tarek has joined #zope3-dev10:28
*** kobold has left #zope3-dev10:33
*** dobee has joined #zope3-dev10:34
*** pelle_ has quit IRC10:50
*** pelle_ has joined #zope3-dev10:50
*** pelle_ has quit IRC10:55
*** pelle_ has joined #zope3-dev10:55
*** naro has quit IRC10:58
*** bigkevmcd has joined #zope3-dev11:05
romanofskimoin11:11
*** schwendinger has joined #zope3-dev11:13
*** mgedmin has joined #zope3-dev11:16
*** stub has joined #zope3-dev11:22
*** greenman has quit IRC11:28
*** naro has joined #zope3-dev11:31
*** pelle_ has quit IRC11:31
*** pelle_ has joined #zope3-dev11:32
*** greenman has joined #zope3-dev11:35
*** kobold has joined #zope3-dev11:36
*** greenman has quit IRC11:42
*** andrew_m has joined #zope3-dev11:42
*** greenman has joined #zope3-dev11:46
*** MJ has joined #zope3-dev11:59
*** regebro has joined #zope3-dev12:01
regebroquick question: I'm I right in assuming the the testbrowser does NOT support javascript? :-)12:02
bigkevmcdyou'll want Selenium for that12:02
projekt01regebro, ask benji, he is working on javascript support for testbrowser12:04
regebrobigkevmcd: No, I don't want selenium at all, thank you. All I want is to know if testbrowser can or can't, instead of wasting an hour trying. :-)12:04
regebroprojekt01: Oh, cool. But that means it's not there now, which is what I needed to know. Thanks.12:05
projekt01I'm not sure about the status12:05
*** richardkan has joined #zope3-dev12:07
*** philiKON has joined #zope3-dev12:10
*** harobed has joined #zope3-dev12:12
*** mgedmin has quit IRC12:12
*** mgedmin has joined #zope3-dev12:13
mgedminbug in RadioWidget: it generates <label><input type="checkbox"/> Message</label>12:15
mgedminthis makes Internet Explorer ignore the label and thus users are unable to click on the message12:16
*** philiKON_ has quit IRC12:25
mgedminhttps://bugs.launchpad.net/zope3/+bug/12350712:27
*** tomster has joined #zope3-dev12:39
*** deo has joined #zope3-dev12:52
*** kleist^lurking is now known as kleist12:54
*** redir has joined #zope3-dev13:12
*** reco has quit IRC13:15
*** afd_ has joined #zope3-dev13:24
*** benji has quit IRC13:31
*** ignas has joined #zope3-dev13:35
*** theuni has joined #zope3-dev13:35
*** mkerrin has joined #zope3-dev13:37
*** alga has joined #zope3-dev13:37
*** schwendinger has quit IRC13:49
*** jinty has quit IRC13:54
*** dunny has quit IRC13:58
*** tarek has quit IRC14:02
*** theuni has quit IRC14:05
*** benji has joined #zope3-dev14:06
*** harobed_ has joined #zope3-dev14:09
*** redir has quit IRC14:27
*** MJ is now known as MJ|away14:31
mgedminhttp://buildbot.zope.org/ is curiously empty14:38
mgedminI see a failure in test_buddy_display (buddydemo.ftests.Test) on trunk14:38
*** timte has joined #zope3-dev14:39
*** schwendinger has joined #zope3-dev14:46
*** kobold has left #zope3-dev14:46
*** nando_ has joined #zope3-dev14:48
*** deo has quit IRC14:53
benjimgedmin: it's empty because there haven't been any test runs triggerd; the current buildbot setup was designed before the great satalite migration of '07; the buildbot doesn't know it should trigger a Zope 3 build when one of the zope.* projects are updated14:55
benjire. buddydemo, I sent a message to the mailing list a couple weeks ago about the failure; no response14:55
benjiI suggest we kill buddydemo14:55
mgedminno objections here :)14:56
* mgedmin starts sharpening an axe14:56
* benji prepairs the body bag.14:57
*** jinty has joined #zope3-dev14:57
*** niemeyer has joined #zope3-dev15:06
*** tarek has joined #zope3-dev15:09
*** harobed_ has quit IRC15:16
*** tomster has quit IRC15:24
*** jsadjohnson has joined #zope3-dev15:25
*** regebro has left #zope3-dev15:26
*** pcardune has joined #zope3-dev15:27
*** theuni has joined #zope3-dev15:28
*** povbot has joined #zope3-dev15:37
*** goschtl has joined #zope3-dev15:44
*** jsadjohnson has quit IRC15:49
*** rocky has joined #zope3-dev15:51
*** baijum has quit IRC16:01
*** greenman has quit IRC16:08
*** MJ|away is now known as MJ16:16
*** jodok has joined #zope3-dev16:21
*** redir has joined #zope3-dev16:24
*** tomster has joined #zope3-dev16:29
*** J1m has joined #zope3-dev16:32
*** tomster has quit IRC16:37
*** tomster has joined #zope3-dev16:38
*** tomster has quit IRC16:42
*** faassen has joined #zope3-dev16:44
*** roym has joined #zope3-dev16:51
*** nando_ has quit IRC16:55
*** yvl has quit IRC16:58
*** jinty has left #zope3-dev16:58
*** romanofski has quit IRC17:16
*** romanofski has joined #zope3-dev17:24
*** cursor has joined #zope3-dev17:27
*** jinty has joined #zope3-dev17:45
*** projet01_ has joined #zope3-dev17:46
*** jinty_ has joined #zope3-dev17:47
*** jinty_ has left #zope3-dev17:48
*** jinty has quit IRC17:48
*** jinty has joined #zope3-dev17:48
*** ignas has quit IRC17:52
*** tomster has joined #zope3-dev17:55
*** norro has joined #zope3-dev17:55
*** projekt01 has quit IRC18:02
*** Ariel_Calzada has joined #zope3-dev18:09
*** goschtl has quit IRC18:17
*** romanofski has quit IRC18:22
*** afd_ has quit IRC18:26
*** oferw has joined #zope3-dev18:31
*** romanofski has joined #zope3-dev18:32
*** jukart has quit IRC18:42
*** alecm has joined #zope3-dev18:44
*** harobed has quit IRC18:58
*** alecm has quit IRC19:03
*** alecm has joined #zope3-dev19:04
*** MJ has quit IRC19:04
*** romanofski has quit IRC19:18
*** projet01_ has quit IRC19:20
*** mgedmin has quit IRC19:24
X-screamdoes this image apply to Zope 3 as well? (besides the ZServer..)19:26
X-screamhttp://www.zope.org/Documentation/Books/ZopeBook/2_6Edition/ZopeArchitecture.stx/Figures/zopearchitecture.gif19:26
*** oferw has quit IRC19:28
*** jinty has quit IRC19:29
*** dobee has quit IRC19:30
*** schwendinger has quit IRC19:30
*** Ariel_Calzada has quit IRC19:35
*** theun1 has joined #zope3-dev19:37
*** b52laptop has quit IRC19:37
*** theuni has quit IRC19:37
*** dunny has joined #zope3-dev19:38
*** b52laptop has joined #zope3-dev19:39
*** jukart has joined #zope3-dev19:43
*** alecm has quit IRC19:46
*** alecm has joined #zope3-dev19:47
*** sorindregan has quit IRC19:47
*** ghendi has quit IRC19:48
*** harobed_ has joined #zope3-dev19:55
*** jodok has quit IRC19:59
*** theun1 has quit IRC20:02
*** theuni has joined #zope3-dev20:05
*** salfield has quit IRC20:07
*** salfield has joined #zope3-dev20:10
*** cursor has quit IRC20:10
*** stub has quit IRC20:17
*** RaFromBRC has joined #zope3-dev20:19
*** cursor has joined #zope3-dev20:20
*** naro has quit IRC20:28
*** ksmith99 has joined #zope3-dev20:36
*** jsadjohnson has joined #zope3-dev20:42
*** jhauser has joined #zope3-dev20:44
*** b52laptop has quit IRC20:47
*** jodok has joined #zope3-dev20:51
*** richardkan has quit IRC20:54
*** kleist has quit IRC20:56
*** jukart has quit IRC21:04
*** alga has quit IRC21:05
*** schwendinger has joined #zope3-dev21:08
*** dobee has joined #zope3-dev21:10
*** pbugni has joined #zope3-dev21:12
*** jsadjohnson has quit IRC21:15
*** jsadjohnson has joined #zope3-dev21:19
*** cursor has quit IRC21:21
*** alecm has quit IRC21:21
*** BjornT has quit IRC21:23
*** foxmjay has joined #zope3-dev21:24
*** ksmith99 has left #zope3-dev21:25
*** foxmjay has quit IRC21:25
*** BjornT has joined #zope3-dev21:33
X-screamwhat happened to http://zope-cookbook.org/ ? :(21:37
pbugnihttp://www.zopelabs.com/ ?21:39
*** nerdalert has joined #zope3-dev21:40
*** pelle_ has quit IRC21:42
X-screamhmm, no. zope-cookbook was a site for recipes for Zope 321:42
*** jsadjohnson has quit IRC21:44
*** tomster is now known as tomster|away21:48
*** theuni has quit IRC21:49
*** Jell-O-Fishi has joined #zope3-dev21:55
*** natea|sanfran is now known as natea|away21:57
*** jhauser has quit IRC21:59
*** jsadjohnson has joined #zope3-dev22:08
*** pelle_ has joined #zope3-dev22:10
*** jsadjohnson has quit IRC22:17
*** pelle_ has quit IRC22:41
*** pelle_ has joined #zope3-dev22:44
*** hazmat has joined #zope3-dev22:46
*** ChanServ sets mode: +o hazmat22:46
*** bigkev has joined #zope3-dev22:47
*** d2m has quit IRC22:50
*** bigkevmcd has quit IRC22:50
*** tomster|away is now known as tomster22:58
dennis_grm, I have an object A, and an object B, where A has an attribute which holds a B, i.e. it says  A.b = B()    However when I assign the B to A.b, it becomes security-proxied, with no way to remove it (?) and then picking A gives a can-not-pickle-security-proxy-objects errors.23:00
dennis_*pickling A23:00
CSWookiedennis_: You can unproxy stuff that's security proxied.  Not sure if that would fix your problem though.23:01
CSWookiezope.security.proxy.removeSecurityProxy23:01
dennis_CSWookie yes, but the assignment itself proxies B, so if I say    A.b = <some unproxied object>, the security mechanism will proxy it on assignment23:02
dennis_so doing  A.b = removeSecurityProxy( A.b )   doesn't actually work23:02
CSWookiedennis_: Right.  I don't know what the solution is.  I imagine you're permissions are fubar somewhere.23:03
dennis_unproxying made sense when temporarly storing an object in a session (for a complex setup of multiple forms), but in this case, where I am editing an existing A, it feels like I am doing something weird if I need to worry about this23:03
dennis_both A and B independently work fine23:03
benjidennis_: you would want to first unproxy A, but this is a code smell; it's likely theres a deeper problem going on23:03
dennis_I have APerson (A), and AnImage (B).23:04
dennis_Create an AnImage in a form update, and just say   self.context.picture = MyNewImageObject    (which was unproxied since I just created it)23:05
dennis_additionally, I need to set MyNewImageObject.__parent__ to the "owner", since otherwise permissions are not looked up (traversed to site root) when I need to view it , but I am not sure if that has something to do with this23:05
dennis_benji yes it smells funny :)   not sure where I should start looking though23:06
*** bigkev has quit IRC23:06
*** bigkev has joined #zope3-dev23:06
*** mkerrin has quit IRC23:07
dennis_without setting  __parent__ it does work, but now if I access A.b it tells me I don't have <some basic view permission> because it can't look it up23:08
dennis_is there another way around that ?23:08
dennis_(my permission is not standard zope, so it traverses parents until it comes somewhere (my site root) where it finds the permission for my principal)23:09
dennis_let's recap :)23:17
dennis_when I set A.b to B(), A.b becomes a security proxied B, and this so far is no problem, and A does get pickled fine23:17
dennis_but I need to also set A.b.__parent__ to A, so that the security mechanism can look up permissions hierarchically23:18
dennis_this it doesn't like23:18
dennis_either I set b.__parent__ to A,   *before* I assign it to A.b, but then I get a can-not-pickle exception23:18
dennis_or I try to do it after, i.e.   A.b.__parent__ = A, but I don't have permissions to set __parent__ on this new object, since it can not look these up (chicken and egg)23:19
dennis_forgive me if I totally missing the point! :)23:19
pcardunedennis_: you should use the locate function23:21
pcarduneto set __parent__ and __name__23:21
pcarduneand make sure that B implements ILocatable23:22
pcarduneand that your permissions allow access to ILocatable attributes23:22
*** bigkev is now known as bigkevmcd23:24
dennis_where are ILocatable and locate defined ?23:24
* benji consults ctags23:24
benjizope/location/interfaces.py23:24
*** faassen has quit IRC23:27
dennis_so s/ILocatable/ILocation/23:27
* benji consults ctags again and gets the same answer.23:27
dennis_zope 3.4.0a1, zope.location.interfaces does not have ILocatable23:28
dennis_grep ILocatable * -r  has no results23:28
* benji consults his vim history and sees that he checked for ILocation both times.23:29
benjia grep of a recent checkout comes up empty for ILocatable23:30
dennis_that's what I meant I think :)23:30
benjiheh23:30
dennis_if I try to assign permissions to the ILocation interface of B I get:   For: ('protectSetAttribute', ... , , '__name__')23:33
dennis_oh wait thats just a conflict, sorry23:33
*** jodok_ has joined #zope3-dev23:33
*** RaFromBRC is now known as RaFromBRC|lunch23:39
*** schwendinger has quit IRC23:41
dennis_if I define permission for set_schema=zope.location.interfaces.ILocation I get a ForbiddenError for __parent__, if I define for set_attributes="__parent__" it works23:42
dennis_but then I am just back at not being able to pickle the A object anymore23:42
dennis_i got it to work by removing the proxy from A altogether but I don't like it because I am doing something weird now and will do it again then later :)23:43
dennis_btw  B is just inherited from zope.app.file.image  so it can't be all that funny23:44
*** tomster has quit IRC23:47
*** jodok has quit IRC23:51
*** jodok has joined #zope3-dev23:52
*** hazmat has quit IRC23:57

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