*** andrew_m has quit IRC | 00:06 | |
*** natea has joined #zope3-dev | 00:14 | |
*** natea has quit IRC | 00:18 | |
*** zbir has quit IRC | 00:23 | |
*** niemeyer_ has quit IRC | 00:25 | |
*** niemeyer_ has joined #zope3-dev | 00:26 | |
*** romanofski is now known as rom|zZZZ | 00:29 | |
*** natea has joined #zope3-dev | 00:30 | |
*** niemeyer_ has quit IRC | 00:31 | |
*** efrerich has quit IRC | 00:34 | |
*** stub has quit IRC | 00:54 | |
*** niemeyer_ has joined #zope3-dev | 00:54 | |
*** J1m has quit IRC | 01:07 | |
*** projekt01 has joined #zope3-dev | 01:09 | |
*** SteveA has quit IRC | 01:11 | |
*** SteveA has joined #zope3-dev | 01:17 | |
*** bradb_ has joined #zope3-dev | 01:20 | |
*** natea has quit IRC | 01:21 | |
*** pcardune has joined #zope3-dev | 01:22 | |
*** andres_ has joined #zope3-dev | 01:26 | |
*** andres has quit IRC | 01:27 | |
*** GaryPoster has quit IRC | 01:27 | |
*** benji has quit IRC | 01:27 | |
*** jinty has quit IRC | 01:29 | |
*** natea has joined #zope3-dev | 01:30 | |
*** andres_ is now known as andres | 01:31 | |
*** bradb has quit IRC | 01:32 | |
*** zmi_junkie has joined #zope3-dev | 01:40 | |
*** bradb_ is now known as bradb | 01:43 | |
*** zmi_junkie has quit IRC | 01:43 | |
*** pcardune has quit IRC | 01:47 | |
*** pcardune has joined #zope3-dev | 01:59 | |
*** philiKON has joined #zope3-dev | 02:03 | |
*** SteveA has quit IRC | 02:16 | |
*** niemeyer_ has quit IRC | 02:19 | |
*** SteveA has joined #zope3-dev | 02:19 | |
*** zbir has joined #zope3-dev | 02:20 | |
*** ruda_porto has quit IRC | 02:37 | |
*** philiKON has quit IRC | 02:43 | |
*** _anguenot has joined #zope3-dev | 02:51 | |
*** bradb has left #zope3-dev | 03:23 | |
*** GaryPoster has joined #zope3-dev | 03:28 | |
*** benji has joined #zope3-dev | 03:38 | |
*** projekt01 has quit IRC | 04:35 | |
*** deo has quit IRC | 04:49 | |
*** _anguenot has quit IRC | 04:59 | |
*** stub has joined #zope3-dev | 05:46 | |
*** dman13_ has joined #zope3-dev | 06:16 | |
*** dman13 has quit IRC | 06:25 | |
*** yota has quit IRC | 06:54 | |
*** dman13_ has quit IRC | 07:27 | |
*** natea has quit IRC | 08:14 | |
*** stub has quit IRC | 08:14 | |
*** tiredbones has quit IRC | 08:14 | |
*** SteveA has quit IRC | 08:14 | |
*** jbb666 has quit IRC | 08:14 | |
*** d2m has quit IRC | 08:14 | |
*** lifeless has quit IRC | 08:14 | |
*** adamSummers has quit IRC | 08:14 | |
*** benji has quit IRC | 08:14 | |
*** GaryPoster has quit IRC | 08:14 | |
*** zbir has quit IRC | 08:14 | |
*** andres has quit IRC | 08:14 | |
*** xenru has quit IRC | 08:14 | |
*** tonico has quit IRC | 08:14 | |
*** So3kris has quit IRC | 08:14 | |
*** srichter has quit IRC | 08:14 | |
*** mkerrin has quit IRC | 08:14 | |
*** rom|zZZZ has quit IRC | 08:14 | |
*** mp has quit IRC | 08:14 | |
*** nouri has quit IRC | 08:14 | |
*** povbot` has joined #zope3-dev | 08:15 | |
*** VladDrac has joined #zope3-dev | 08:15 | |
*** benji has joined #zope3-dev | 08:15 | |
*** GaryPoster has joined #zope3-dev | 08:15 | |
*** zbir has joined #zope3-dev | 08:15 | |
*** andres has joined #zope3-dev | 08:15 | |
*** stub has joined #zope3-dev | 08:15 | |
*** VladDrac has quit IRC | 08:15 | |
*** VladDrac has joined #zope3-dev | 08:15 | |
*** tahara has joined #zope3-dev | 08:15 | |
*** povbot has joined #zope3-dev | 08:15 | |
*** eins has joined #zope3-dev | 08:16 | |
*** xenru has joined #zope3-dev | 08:16 | |
*** tahara has quit IRC | 08:16 | |
*** VladDrac has quit IRC | 08:16 | |
*** povbot has quit IRC | 08:16 | |
eins | morning | 08:16 |
---|---|---|
*** xenru has quit IRC | 08:16 | |
*** SteveA has joined #zope3-dev | 08:16 | |
*** GaryPoster has quit IRC | 08:17 | |
*** lifeless has joined #zope3-dev | 08:17 | |
*** tahara has joined #zope3-dev | 08:17 | |
*** xenru has joined #zope3-dev | 08:17 | |
*** d2m has joined #zope3-dev | 08:17 | |
*** adamSummers has joined #zope3-dev | 08:17 | |
*** nouri has joined #zope3-dev | 08:19 | |
*** mp has joined #zope3-dev | 08:19 | |
*** stub has quit IRC | 08:39 | |
*** stub has joined #zope3-dev | 08:41 | |
*** stub has quit IRC | 08:44 | |
*** stub has joined #zope3-dev | 08:51 | |
eins | how do I programmatically grant permissions? | 08:55 |
tahara | you can use IPrincipalPermissionMap adapter in zope.app.securitypolicy. | 08:58 |
* eins is looking at that | 09:00 | |
tahara | oops, sorry, the interface is IPrincipalPermissionManager. | 09:02 |
*** xenru|clone has joined #zope3-dev | 09:03 | |
*** stub has quit IRC | 09:04 | |
eins | I tried using it yesterday, still trying:) | 09:04 |
*** dman13 has joined #zope3-dev | 09:12 | |
tahara | ok, so you can grant permissions like this: | 09:17 |
tahara | mapping = IPrincipalPermissionManager(obj) | 09:18 |
tahara | mapping.grantPermissionToPrincipal('Zope.View', principal) | 09:19 |
*** xenru has quit IRC | 09:19 | |
eins | tahara can I just do from zope.app.securitypolicy.principalpermission import principalPermissionManager? and use principalPermissionManager.grantPermissionToPrincipal('zope.View', principal)? | 09:32 |
*** j-w has joined #zope3-dev | 09:37 | |
tahara | principalPermissionManager is used for principals declared in zcml. | 09:39 |
eins | i see | 09:40 |
tahara | so if you want to grant permission to object in zodb, you should not use principalPermissionManager. | 09:42 |
tahara | I think many applications does not use principals.zcml because it is a static data. | 09:45 |
eins | moreover - I want to manage permissions for objects that are actually stored in rdb database | 09:47 |
tahara | and generally you should not use principalPermissionManager, you can use it though zcml with grant directive. | 09:47 |
eins | I already get principals from rdb | 09:47 |
eins | and know trying to solve issues with setting permissions to these objects | 09:47 |
eins | know=now | 09:48 |
tahara | I see.then you can implement your own IPrincipalRoleManager adapter. | 09:49 |
tahara | do you need to store permission mapping to rdb? | 09:54 |
eins | I will need, but for now I'm trying to set up simple permission-to-principal example:) | 09:54 |
*** stub has joined #zope3-dev | 09:55 | |
eins | i already have 'xxx.yyy' principal, that I get from rdb, and want to assign it a permission 'zope.View' | 09:55 |
*** stub has quit IRC | 10:01 | |
tahara | for global? | 10:01 |
*** rom|zZZZ is now known as romanofski | 10:03 | |
romanofski | moin | 10:03 |
tahara | hello. | 10:05 |
*** upsidedown has joined #zope3-dev | 10:16 | |
*** upsidedown has left #zope3-dev | 10:17 | |
eins | tahara for global what? | 10:17 |
eins | romanofski morning;) | 10:17 |
*** jukart has joined #zope3-dev | 10:18 | |
tahara | ah, sorry, you want to grant permissions for global setting? | 10:18 |
romanofski | hi eins :) | 10:19 |
*** romanofski is now known as rom|aw | 10:19 | |
*** jukart has left #zope3-dev | 10:20 | |
eins | tahara I just want to get the idea of granting permissions from python code, not zcml:) | 10:20 |
eins | it doesn't matter for me global or local at this time.. | 10:20 |
*** BjornT has joined #zope3-dev | 10:23 | |
tahara | ok. eins, I think this is a normal way to grant permissions from python code: | 10:33 |
tahara | mapping = IPrincipalPermissionManager(obj) | 10:34 |
tahara | mapping.grantPermissionToPrincipal('zope.View', principal) | 10:34 |
eins | MacYET morning;) | 10:36 |
eins | oops sorry | 10:36 |
tahara | this is the same as above-mentioned... | 10:36 |
eins | tahara i'm trying that.. | 10:36 |
eins | and checking ZopeSecurityPolicy code to understand what does what | 10:38 |
*** Aiste has joined #zope3-dev | 10:58 | |
eins | ok prinper = IPrincipalPermissionMap(parent, None) in cached_prinper in ZopeSecurityPolicy returns zope.app.securitypolicy.principalpermission.AnnotationPrincipalPermissionManager. | 11:16 |
eins | that's why my SQLPrincipalPermissionManager doesn't do anything good | 11:16 |
eins | :) | 11:17 |
*** agroszer has joined #zope3-dev | 11:19 | |
*** jinty has joined #zope3-dev | 11:21 | |
*** tarek has joined #zope3-dev | 11:27 | |
*** xenru|clone has quit IRC | 11:37 | |
*** xenru has joined #zope3-dev | 12:19 | |
*** stub has joined #zope3-dev | 12:42 | |
*** stub has quit IRC | 12:43 | |
*** stub has joined #zope3-dev | 12:44 | |
*** andrew_m has joined #zope3-dev | 12:59 | |
*** mgedmin has joined #zope3-dev | 13:10 | |
*** faassen has joined #zope3-dev | 13:25 | |
*** nouri has quit IRC | 13:26 | |
*** pcardune has joined #zope3-dev | 13:27 | |
*** andrew_m has left #zope3-dev | 13:36 | |
*** tarek_ has joined #zope3-dev | 13:40 | |
*** tarek has quit IRC | 13:41 | |
*** ignas has joined #zope3-dev | 13:42 | |
*** MacYET has joined #zope3-dev | 13:53 | |
*** zagy has joined #zope3-dev | 14:01 | |
*** niemeyer_ has joined #zope3-dev | 14:01 | |
*** efrerich has joined #zope3-dev | 14:03 | |
*** tarek has joined #zope3-dev | 14:07 | |
*** tarek_ has quit IRC | 14:08 | |
*** niemeyer_ is now known as niemeyer | 14:27 | |
*** pcardune has quit IRC | 14:39 | |
*** jinty_ has joined #zope3-dev | 14:40 | |
*** zbir has quit IRC | 14:47 | |
*** jinty has quit IRC | 14:47 | |
*** jinty_ has quit IRC | 14:49 | |
*** ChanServ sets mode: +o srichter | 14:49 | |
*** vlado has joined #zope3-dev | 15:00 | |
*** _anguenot has joined #zope3-dev | 15:01 | |
*** jhauser has joined #zope3-dev | 15:25 | |
*** mkerrin has joined #zope3-dev | 15:25 | |
*** philiKON has joined #zope3-dev | 15:31 | |
*** andres has quit IRC | 15:32 | |
*** mgedmin has quit IRC | 15:44 | |
*** andres has joined #zope3-dev | 16:00 | |
andres | join #crystalspace | 16:00 |
benji | andres, are you giving us a command, or perhaps asking permission? :) | 16:02 |
andres | benji, im damaged my own keyboard ;-) | 16:03 |
andres | and / only works if you use great pressure ;-) | 16:03 |
*** zbir has joined #zope3-dev | 16:07 | |
*** efge has joined #zope3-dev | 16:19 | |
*** GaryPoster has joined #zope3-dev | 16:26 | |
*** J1m has joined #zope3-dev | 16:43 | |
*** eins has quit IRC | 16:59 | |
*** MrTopf has joined #zope3-dev | 17:13 | |
srichter | J1m: you recently discussed on zope3-dev not proxying the modules variable for menu item filters | 17:29 |
srichter | were you for or against that move? | 17:29 |
srichter | because I had this problem right now too and I would like to fix it | 17:29 |
J1m | I was for not proxying things like modules. | 17:29 |
srichter | ok | 17:29 |
srichter | so I can make the change? | 17:29 |
J1m | context should remain proxied. | 17:29 |
srichter | right, definitely | 17:30 |
J1m | iow, the filters should not create new proxies, but they shouldn't remove any. | 17:30 |
J1m | either | 17:30 |
srichter | ok | 17:30 |
J1m | where would you make the change? | 17:30 |
srichter | in the menu item class | 17:31 |
J1m | trunk? | 17:31 |
J1m | 3.2? | 17:31 |
srichter | it explicitely proxies sys.modules when creating the TALES engine | 17:31 |
srichter | oh, both | 17:31 |
J1m | Is this a bug fix? | 17:31 |
srichter | I think it is | 17:31 |
srichter | I think it was a misfeature | 17:31 |
J1m | ok, then go ahead. :) | 17:31 |
* J1m didn't hear that last bit | 17:32 | |
srichter | ok :-) | 17:32 |
GaryPoster | srichter: I think I fixed it, at least for trunk | 17:37 |
GaryPoster | Can't remember (eye roll...sigh...) | 17:38 |
srichter | not in 3.2, I just checked | 17:38 |
srichter | GaryPoster: can you backport the fix? | 17:38 |
GaryPoster | yeah, lemme see if I can find it quickly; one sec | 17:38 |
srichter | btw, in 3.3 I might propose to implement menus using viewlets; that will make menus much more powerful | 17:39 |
GaryPoster | Log message for revision 40958: | 17:39 |
GaryPoster | remove ProxyFactory from , per http://mail.zope.org/pipermail/zope3-dev/2005-December/017206.html ff. | 17:39 |
GaryPoster | Did not backport; didn't know it was appropriate | 17:39 |
GaryPoster | I'll do the merge to 3.2 quickly now. | 17:40 |
srichter | well, it actually makes the filter quiet useless, since no module/package has secrity declarations | 17:40 |
GaryPoster | running the tests always takes the longest. ;-) | 17:40 |
srichter | great | 17:40 |
srichter | I know | 17:40 |
GaryPoster | Actually, you can get around it in the filter by using a view: that's what I did. Just extra unnecessary registration. | 17:41 |
srichter | oh, jeez | 17:42 |
GaryPoster | :-) that's when I sent the "let's not do this" email. | 17:42 |
*** j-w has left #zope3-dev | 17:42 | |
GaryPoster | OK, running tests. be back soon. | 17:43 |
srichter | cool | 17:43 |
*** zagy has quit IRC | 17:44 | |
GaryPoster | srichter: Committed revision 40984. | 17:50 |
srichter | thanks a lot! | 17:56 |
*** jenner has joined #zope3-dev | 18:23 | |
*** rom|aw is now known as romanofski | 18:33 | |
*** andres has quit IRC | 18:53 | |
*** philiKON has quit IRC | 19:04 | |
*** vlado has quit IRC | 19:15 | |
*** yota has joined #zope3-dev | 19:16 | |
*** mgedmin has joined #zope3-dev | 19:41 | |
* MacYET is away: kochen un dpacken | 19:58 | |
* MacYET is away: kochen und packen | 19:58 | |
*** ignas has quit IRC | 20:43 | |
*** faassen has quit IRC | 21:03 | |
*** _anguenot has quit IRC | 21:16 | |
*** deo has joined #zope3-dev | 21:20 | |
*** agroszer has quit IRC | 21:25 | |
*** mkerrin has quit IRC | 21:32 | |
*** zbir has quit IRC | 21:36 | |
*** zbir has joined #zope3-dev | 21:59 | |
*** zbir has quit IRC | 22:08 | |
*** zbir has joined #zope3-dev | 22:08 | |
*** zbir has quit IRC | 22:09 | |
*** jhauser_ has joined #zope3-dev | 22:11 | |
*** jhauser has quit IRC | 22:23 | |
*** zbir has joined #zope3-dev | 22:28 | |
*** MacYET has quit IRC | 22:33 | |
*** mgedmin has quit IRC | 22:37 | |
*** jhauser_ has quit IRC | 22:39 | |
*** MrTopf has quit IRC | 22:49 | |
*** jinty has joined #zope3-dev | 23:00 | |
*** MacYET has joined #zope3-dev | 23:11 | |
*** efrerich has quit IRC | 23:12 | |
*** MacYET has quit IRC | 23:14 | |
*** WebMaven has joined #zope3-dev | 23:42 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!