*** dobee has joined #zope3-dev | 00:04 | |
*** dobee has quit IRC | 00:05 | |
*** dobee has joined #zope3-dev | 00:07 | |
*** redir has quit IRC | 00:08 | |
*** edgordon_ has joined #zope3-dev | 00:20 | |
*** edgordon has quit IRC | 00:37 | |
norro | Hi channel. What would be the best way to define user access for a single folder with zope3? | 00:43 |
---|---|---|
*** mgedmin has quit IRC | 00:43 | |
*** tomster has quit IRC | 00:51 | |
norro | btw: 'folder' means zope's folder object, not a file system folder | 00:52 |
norro | A 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-dev | 00:54 | |
*** Newfie2007 has quit IRC | 00:59 | |
*** greenman has joined #zope3-dev | 01:00 | |
*** natea|sanfran_ has quit IRC | 01:04 | |
*** dobee has left #zope3-dev | 01: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 |
norro | dennis_ okay, I will have a look at this. Thank you | 01: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 chapter | 01:17 |
norro | yes, 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-dev | 01:22 | |
norro | thanks again | 01:22 |
norro | bye | 01:22 |
*** norro has quit IRC | 01:22 | |
*** andrew_m has quit IRC | 01:28 | |
*** natea|sanfran has joined #zope3-dev | 01:29 | |
CSWookie | Does an interaction have to be going for events to to work, or can they work without an interaction? | 01:34 |
CSWookie | s/to to/to/ | 01:34 |
*** tarek has quit IRC | 01:48 | |
*** harobed has quit IRC | 01:51 | |
*** andres has joined #zope3-dev | 01:55 | |
*** tjs has joined #zope3-dev | 02:16 | |
*** timte has quit IRC | 02:27 | |
*** edgordon_ has quit IRC | 02:35 | |
*** greenman has quit IRC | 02:43 | |
*** greenman has joined #zope3-dev | 02:44 | |
*** tomster has joined #zope3-dev | 02:45 | |
tjs | G'day, I posted recently about getting sites and db connection setup in a thread | 02:46 |
tjs | I 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 requests | 02:47 |
tjs | How would I go about finding a db connection for my thread?\ | 02:51 |
*** whit has joined #zope3-dev | 02:53 | |
philiKON_ | tjs: conn = db.open() | 02:53 |
philiKON_ | where db is the database object | 02:53 |
philiKON_ | you can get a hold of it by listening to the IDatabaseOpenedEvent | 02:54 |
tjs | philiKON_: 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.setSite | 02:56 |
tjs | would I need to dummy up a request object for things to work? | 02:56 |
tjs | basically 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 indexing | 02:57 |
*** whit has quit IRC | 02:59 | |
*** tomster has quit IRC | 03:41 | |
*** huajie has joined #zope3-dev | 04:29 | |
*** kleist has joined #zope3-dev | 04:39 | |
*** roym has quit IRC | 05:32 | |
*** greenman has quit IRC | 05:39 | |
*** Ariel_Calzada has joined #zope3-dev | 05:56 | |
*** alecm has joined #zope3-dev | 06:01 | |
*** alecm has quit IRC | 06:06 | |
*** kobold has joined #zope3-dev | 06:10 | |
*** alecm has joined #zope3-dev | 06:30 | |
*** cursor has joined #zope3-dev | 07:12 | |
huajie | stupid question, is there anything wrong with the command: svn checkout http://svn.zope.org/z3c.menu/trunk/src/z3c/menu/ ? | 07:13 |
huajie | get a error : svn: PROPFIND of '/z3c.menu/trunk': 301 Moved (http://svn.zope.org) :( | 07:14 |
tjs | just a random guess | 07:15 |
tjs | but I bet something was moved | 07:15 |
huajie | is it really random ? ;) | 07:16 |
huajie | you could at least try to randomly guess what has move where :p | 07:16 |
*** cursor has quit IRC | 07:17 | |
*** greenman has joined #zope3-dev | 07:25 | |
*** huajie has quit IRC | 07:25 | |
*** dunny has quit IRC | 07:31 | |
*** huajie has joined #zope3-dev | 07:35 | |
*** baijum has joined #zope3-dev | 07:41 | |
*** redir has joined #zope3-dev | 07:42 | |
*** Ariel_Calzada has quit IRC | 07:50 | |
*** ghendi has joined #zope3-dev | 07:52 | |
*** pelle_ has joined #zope3-dev | 08:03 | |
*** redir has quit IRC | 08:08 | |
*** jukart has joined #zope3-dev | 08:39 | |
*** sorindregan has joined #zope3-dev | 08:40 | |
*** pelle_ has quit IRC | 08:42 | |
*** pelle_ has joined #zope3-dev | 08:46 | |
*** yvl has joined #zope3-dev | 08:46 | |
*** dunny has joined #zope3-dev | 08:58 | |
*** d2m has joined #zope3-dev | 09:02 | |
*** naro has joined #zope3-dev | 09:02 | |
*** pelle_ has quit IRC | 09:04 | |
*** salfield has quit IRC | 09:15 | |
*** andres has quit IRC | 09:16 | |
*** salfield has joined #zope3-dev | 09:17 | |
*** schwendinger has joined #zope3-dev | 09:22 | |
*** schwendinger has quit IRC | 09:33 | |
*** alecm has quit IRC | 09:47 | |
*** huajie has quit IRC | 09:56 | |
*** pelle_ has joined #zope3-dev | 09:59 | |
*** pelle_ has quit IRC | 10:01 | |
*** pelle_ has joined #zope3-dev | 10:01 | |
*** kleist is now known as kleist^lurking | 10:04 | |
*** sorindregan has quit IRC | 10:11 | |
*** sorindregan has joined #zope3-dev | 10:12 | |
*** alecm has joined #zope3-dev | 10:15 | |
*** alecm has quit IRC | 10:18 | |
*** projekt01 has joined #zope3-dev | 10:24 | |
*** tarek has joined #zope3-dev | 10:28 | |
*** kobold has left #zope3-dev | 10:33 | |
*** dobee has joined #zope3-dev | 10:34 | |
*** pelle_ has quit IRC | 10:50 | |
*** pelle_ has joined #zope3-dev | 10:50 | |
*** pelle_ has quit IRC | 10:55 | |
*** pelle_ has joined #zope3-dev | 10:55 | |
*** naro has quit IRC | 10:58 | |
*** bigkevmcd has joined #zope3-dev | 11:05 | |
romanofski | moin | 11:11 |
*** schwendinger has joined #zope3-dev | 11:13 | |
*** mgedmin has joined #zope3-dev | 11:16 | |
*** stub has joined #zope3-dev | 11:22 | |
*** greenman has quit IRC | 11:28 | |
*** naro has joined #zope3-dev | 11:31 | |
*** pelle_ has quit IRC | 11:31 | |
*** pelle_ has joined #zope3-dev | 11:32 | |
*** greenman has joined #zope3-dev | 11:35 | |
*** kobold has joined #zope3-dev | 11:36 | |
*** greenman has quit IRC | 11:42 | |
*** andrew_m has joined #zope3-dev | 11:42 | |
*** greenman has joined #zope3-dev | 11:46 | |
*** MJ has joined #zope3-dev | 11:59 | |
*** regebro has joined #zope3-dev | 12:01 | |
regebro | quick question: I'm I right in assuming the the testbrowser does NOT support javascript? :-) | 12:02 |
bigkevmcd | you'll want Selenium for that | 12:02 |
projekt01 | regebro, ask benji, he is working on javascript support for testbrowser | 12:04 |
regebro | bigkevmcd: 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 |
regebro | projekt01: Oh, cool. But that means it's not there now, which is what I needed to know. Thanks. | 12:05 |
projekt01 | I'm not sure about the status | 12:05 |
*** richardkan has joined #zope3-dev | 12:07 | |
*** philiKON has joined #zope3-dev | 12:10 | |
*** harobed has joined #zope3-dev | 12:12 | |
*** mgedmin has quit IRC | 12:12 | |
*** mgedmin has joined #zope3-dev | 12:13 | |
mgedmin | bug in RadioWidget: it generates <label><input type="checkbox"/> Message</label> | 12:15 |
mgedmin | this makes Internet Explorer ignore the label and thus users are unable to click on the message | 12:16 |
*** philiKON_ has quit IRC | 12:25 | |
mgedmin | https://bugs.launchpad.net/zope3/+bug/123507 | 12:27 |
*** tomster has joined #zope3-dev | 12:39 | |
*** deo has joined #zope3-dev | 12:52 | |
*** kleist^lurking is now known as kleist | 12:54 | |
*** redir has joined #zope3-dev | 13:12 | |
*** reco has quit IRC | 13:15 | |
*** afd_ has joined #zope3-dev | 13:24 | |
*** benji has quit IRC | 13:31 | |
*** ignas has joined #zope3-dev | 13:35 | |
*** theuni has joined #zope3-dev | 13:35 | |
*** mkerrin has joined #zope3-dev | 13:37 | |
*** alga has joined #zope3-dev | 13:37 | |
*** schwendinger has quit IRC | 13:49 | |
*** jinty has quit IRC | 13:54 | |
*** dunny has quit IRC | 13:58 | |
*** tarek has quit IRC | 14:02 | |
*** theuni has quit IRC | 14:05 | |
*** benji has joined #zope3-dev | 14:06 | |
*** harobed_ has joined #zope3-dev | 14:09 | |
*** redir has quit IRC | 14:27 | |
*** MJ is now known as MJ|away | 14:31 | |
mgedmin | http://buildbot.zope.org/ is curiously empty | 14:38 |
mgedmin | I see a failure in test_buddy_display (buddydemo.ftests.Test) on trunk | 14:38 |
*** timte has joined #zope3-dev | 14:39 | |
*** schwendinger has joined #zope3-dev | 14:46 | |
*** kobold has left #zope3-dev | 14:46 | |
*** nando_ has joined #zope3-dev | 14:48 | |
*** deo has quit IRC | 14:53 | |
benji | mgedmin: 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 updated | 14:55 |
benji | re. buddydemo, I sent a message to the mailing list a couple weeks ago about the failure; no response | 14:55 |
benji | I suggest we kill buddydemo | 14:55 |
mgedmin | no objections here :) | 14:56 |
* mgedmin starts sharpening an axe | 14:56 | |
* benji prepairs the body bag. | 14:57 | |
*** jinty has joined #zope3-dev | 14:57 | |
*** niemeyer has joined #zope3-dev | 15:06 | |
*** tarek has joined #zope3-dev | 15:09 | |
*** harobed_ has quit IRC | 15:16 | |
*** tomster has quit IRC | 15:24 | |
*** jsadjohnson has joined #zope3-dev | 15:25 | |
*** regebro has left #zope3-dev | 15:26 | |
*** pcardune has joined #zope3-dev | 15:27 | |
*** theuni has joined #zope3-dev | 15:28 | |
*** povbot has joined #zope3-dev | 15:37 | |
*** goschtl has joined #zope3-dev | 15:44 | |
*** jsadjohnson has quit IRC | 15:49 | |
*** rocky has joined #zope3-dev | 15:51 | |
*** baijum has quit IRC | 16:01 | |
*** greenman has quit IRC | 16:08 | |
*** MJ|away is now known as MJ | 16:16 | |
*** jodok has joined #zope3-dev | 16:21 | |
*** redir has joined #zope3-dev | 16:24 | |
*** tomster has joined #zope3-dev | 16:29 | |
*** J1m has joined #zope3-dev | 16:32 | |
*** tomster has quit IRC | 16:37 | |
*** tomster has joined #zope3-dev | 16:38 | |
*** tomster has quit IRC | 16:42 | |
*** faassen has joined #zope3-dev | 16:44 | |
*** roym has joined #zope3-dev | 16:51 | |
*** nando_ has quit IRC | 16:55 | |
*** yvl has quit IRC | 16:58 | |
*** jinty has left #zope3-dev | 16:58 | |
*** romanofski has quit IRC | 17:16 | |
*** romanofski has joined #zope3-dev | 17:24 | |
*** cursor has joined #zope3-dev | 17:27 | |
*** jinty has joined #zope3-dev | 17:45 | |
*** projet01_ has joined #zope3-dev | 17:46 | |
*** jinty_ has joined #zope3-dev | 17:47 | |
*** jinty_ has left #zope3-dev | 17:48 | |
*** jinty has quit IRC | 17:48 | |
*** jinty has joined #zope3-dev | 17:48 | |
*** ignas has quit IRC | 17:52 | |
*** tomster has joined #zope3-dev | 17:55 | |
*** norro has joined #zope3-dev | 17:55 | |
*** projekt01 has quit IRC | 18:02 | |
*** Ariel_Calzada has joined #zope3-dev | 18:09 | |
*** goschtl has quit IRC | 18:17 | |
*** romanofski has quit IRC | 18:22 | |
*** afd_ has quit IRC | 18:26 | |
*** oferw has joined #zope3-dev | 18:31 | |
*** romanofski has joined #zope3-dev | 18:32 | |
*** jukart has quit IRC | 18:42 | |
*** alecm has joined #zope3-dev | 18:44 | |
*** harobed has quit IRC | 18:58 | |
*** alecm has quit IRC | 19:03 | |
*** alecm has joined #zope3-dev | 19:04 | |
*** MJ has quit IRC | 19:04 | |
*** romanofski has quit IRC | 19:18 | |
*** projet01_ has quit IRC | 19:20 | |
*** mgedmin has quit IRC | 19:24 | |
X-scream | does this image apply to Zope 3 as well? (besides the ZServer..) | 19:26 |
X-scream | http://www.zope.org/Documentation/Books/ZopeBook/2_6Edition/ZopeArchitecture.stx/Figures/zopearchitecture.gif | 19:26 |
*** oferw has quit IRC | 19:28 | |
*** jinty has quit IRC | 19:29 | |
*** dobee has quit IRC | 19:30 | |
*** schwendinger has quit IRC | 19:30 | |
*** Ariel_Calzada has quit IRC | 19:35 | |
*** theun1 has joined #zope3-dev | 19:37 | |
*** b52laptop has quit IRC | 19:37 | |
*** theuni has quit IRC | 19:37 | |
*** dunny has joined #zope3-dev | 19:38 | |
*** b52laptop has joined #zope3-dev | 19:39 | |
*** jukart has joined #zope3-dev | 19:43 | |
*** alecm has quit IRC | 19:46 | |
*** alecm has joined #zope3-dev | 19:47 | |
*** sorindregan has quit IRC | 19:47 | |
*** ghendi has quit IRC | 19:48 | |
*** harobed_ has joined #zope3-dev | 19:55 | |
*** jodok has quit IRC | 19:59 | |
*** theun1 has quit IRC | 20:02 | |
*** theuni has joined #zope3-dev | 20:05 | |
*** salfield has quit IRC | 20:07 | |
*** salfield has joined #zope3-dev | 20:10 | |
*** cursor has quit IRC | 20:10 | |
*** stub has quit IRC | 20:17 | |
*** RaFromBRC has joined #zope3-dev | 20:19 | |
*** cursor has joined #zope3-dev | 20:20 | |
*** naro has quit IRC | 20:28 | |
*** ksmith99 has joined #zope3-dev | 20:36 | |
*** jsadjohnson has joined #zope3-dev | 20:42 | |
*** jhauser has joined #zope3-dev | 20:44 | |
*** b52laptop has quit IRC | 20:47 | |
*** jodok has joined #zope3-dev | 20:51 | |
*** richardkan has quit IRC | 20:54 | |
*** kleist has quit IRC | 20:56 | |
*** jukart has quit IRC | 21:04 | |
*** alga has quit IRC | 21:05 | |
*** schwendinger has joined #zope3-dev | 21:08 | |
*** dobee has joined #zope3-dev | 21:10 | |
*** pbugni has joined #zope3-dev | 21:12 | |
*** jsadjohnson has quit IRC | 21:15 | |
*** jsadjohnson has joined #zope3-dev | 21:19 | |
*** cursor has quit IRC | 21:21 | |
*** alecm has quit IRC | 21:21 | |
*** BjornT has quit IRC | 21:23 | |
*** foxmjay has joined #zope3-dev | 21:24 | |
*** ksmith99 has left #zope3-dev | 21:25 | |
*** foxmjay has quit IRC | 21:25 | |
*** BjornT has joined #zope3-dev | 21:33 | |
X-scream | what happened to http://zope-cookbook.org/ ? :( | 21:37 |
pbugni | http://www.zopelabs.com/ ? | 21:39 |
*** nerdalert has joined #zope3-dev | 21:40 | |
*** pelle_ has quit IRC | 21:42 | |
X-scream | hmm, no. zope-cookbook was a site for recipes for Zope 3 | 21:42 |
*** jsadjohnson has quit IRC | 21:44 | |
*** tomster is now known as tomster|away | 21:48 | |
*** theuni has quit IRC | 21:49 | |
*** Jell-O-Fishi has joined #zope3-dev | 21:55 | |
*** natea|sanfran is now known as natea|away | 21:57 | |
*** jhauser has quit IRC | 21:59 | |
*** jsadjohnson has joined #zope3-dev | 22:08 | |
*** pelle_ has joined #zope3-dev | 22:10 | |
*** jsadjohnson has quit IRC | 22:17 | |
*** pelle_ has quit IRC | 22:41 | |
*** pelle_ has joined #zope3-dev | 22:44 | |
*** hazmat has joined #zope3-dev | 22:46 | |
*** ChanServ sets mode: +o hazmat | 22:46 | |
*** bigkev has joined #zope3-dev | 22:47 | |
*** d2m has quit IRC | 22:50 | |
*** bigkevmcd has quit IRC | 22:50 | |
*** tomster|away is now known as tomster | 22: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 A | 23:00 |
CSWookie | dennis_: You can unproxy stuff that's security proxied. Not sure if that would fix your problem though. | 23:01 |
CSWookie | zope.security.proxy.removeSecurityProxy | 23: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 assignment | 23:02 |
dennis_ | so doing A.b = removeSecurityProxy( A.b ) doesn't actually work | 23:02 |
CSWookie | dennis_: 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 this | 23:03 |
dennis_ | both A and B independently work fine | 23:03 |
benji | dennis_: you would want to first unproxy A, but this is a code smell; it's likely theres a deeper problem going on | 23: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 this | 23:05 |
dennis_ | benji yes it smells funny :) not sure where I should start looking though | 23:06 |
*** bigkev has quit IRC | 23:06 | |
*** bigkev has joined #zope3-dev | 23:06 | |
*** mkerrin has quit IRC | 23: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 up | 23: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 fine | 23:17 |
dennis_ | but I need to also set A.b.__parent__ to A, so that the security mechanism can look up permissions hierarchically | 23:18 |
dennis_ | this it doesn't like | 23:18 |
dennis_ | either I set b.__parent__ to A, *before* I assign it to A.b, but then I get a can-not-pickle exception | 23: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 |
pcardune | dennis_: you should use the locate function | 23:21 |
pcardune | to set __parent__ and __name__ | 23:21 |
pcardune | and make sure that B implements ILocatable | 23:22 |
pcardune | and that your permissions allow access to ILocatable attributes | 23:22 |
*** bigkev is now known as bigkevmcd | 23:24 | |
dennis_ | where are ILocatable and locate defined ? | 23:24 |
* benji consults ctags | 23:24 | |
benji | zope/location/interfaces.py | 23:24 |
*** faassen has quit IRC | 23: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 ILocatable | 23:28 |
dennis_ | grep ILocatable * -r has no results | 23:28 |
* benji consults his vim history and sees that he checked for ILocation both times. | 23:29 | |
benji | a grep of a recent checkout comes up empty for ILocatable | 23:30 |
dennis_ | that's what I meant I think :) | 23:30 |
benji | heh | 23: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, sorry | 23:33 |
*** jodok_ has joined #zope3-dev | 23:33 | |
*** RaFromBRC is now known as RaFromBRC|lunch | 23:39 | |
*** schwendinger has quit IRC | 23: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 works | 23:42 |
dennis_ | but then I am just back at not being able to pickle the A object anymore | 23: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 funny | 23:44 |
*** tomster has quit IRC | 23:47 | |
*** jodok has quit IRC | 23:51 | |
*** jodok has joined #zope3-dev | 23:52 | |
*** hazmat has quit IRC | 23:57 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!