IRC log of #zope3-dev for Thursday, 2005-12-22

*** andrew_m has quit IRC00:06
*** natea has joined #zope3-dev00:14
*** natea has quit IRC00:18
*** zbir has quit IRC00:23
*** niemeyer_ has quit IRC00:25
*** niemeyer_ has joined #zope3-dev00:26
*** romanofski is now known as rom|zZZZ00:29
*** natea has joined #zope3-dev00:30
*** niemeyer_ has quit IRC00:31
*** efrerich has quit IRC00:34
*** stub has quit IRC00:54
*** niemeyer_ has joined #zope3-dev00:54
*** J1m has quit IRC01:07
*** projekt01 has joined #zope3-dev01:09
*** SteveA has quit IRC01:11
*** SteveA has joined #zope3-dev01:17
*** bradb_ has joined #zope3-dev01:20
*** natea has quit IRC01:21
*** pcardune has joined #zope3-dev01:22
*** andres_ has joined #zope3-dev01:26
*** andres has quit IRC01:27
*** GaryPoster has quit IRC01:27
*** benji has quit IRC01:27
*** jinty has quit IRC01:29
*** natea has joined #zope3-dev01:30
*** andres_ is now known as andres01:31
*** bradb has quit IRC01:32
*** zmi_junkie has joined #zope3-dev01:40
*** bradb_ is now known as bradb01:43
*** zmi_junkie has quit IRC01:43
*** pcardune has quit IRC01:47
*** pcardune has joined #zope3-dev01:59
*** philiKON has joined #zope3-dev02:03
*** SteveA has quit IRC02:16
*** niemeyer_ has quit IRC02:19
*** SteveA has joined #zope3-dev02:19
*** zbir has joined #zope3-dev02:20
*** ruda_porto has quit IRC02:37
*** philiKON has quit IRC02:43
*** _anguenot has joined #zope3-dev02:51
*** bradb has left #zope3-dev03:23
*** GaryPoster has joined #zope3-dev03:28
*** benji has joined #zope3-dev03:38
*** projekt01 has quit IRC04:35
*** deo has quit IRC04:49
*** _anguenot has quit IRC04:59
*** stub has joined #zope3-dev05:46
*** dman13_ has joined #zope3-dev06:16
*** dman13 has quit IRC06:25
*** yota has quit IRC06:54
*** dman13_ has quit IRC07:27
*** natea has quit IRC08:14
*** stub has quit IRC08:14
*** tiredbones has quit IRC08:14
*** SteveA has quit IRC08:14
*** jbb666 has quit IRC08:14
*** d2m has quit IRC08:14
*** lifeless has quit IRC08:14
*** adamSummers has quit IRC08:14
*** benji has quit IRC08:14
*** GaryPoster has quit IRC08:14
*** zbir has quit IRC08:14
*** andres has quit IRC08:14
*** xenru has quit IRC08:14
*** tonico has quit IRC08:14
*** So3kris has quit IRC08:14
*** srichter has quit IRC08:14
*** mkerrin has quit IRC08:14
*** rom|zZZZ has quit IRC08:14
*** mp has quit IRC08:14
*** nouri has quit IRC08:14
*** povbot` has joined #zope3-dev08:15
*** VladDrac has joined #zope3-dev08:15
*** benji has joined #zope3-dev08:15
*** GaryPoster has joined #zope3-dev08:15
*** zbir has joined #zope3-dev08:15
*** andres has joined #zope3-dev08:15
*** stub has joined #zope3-dev08:15
*** VladDrac has quit IRC08:15
*** VladDrac has joined #zope3-dev08:15
*** tahara has joined #zope3-dev08:15
*** povbot has joined #zope3-dev08:15
*** eins has joined #zope3-dev08:16
*** xenru has joined #zope3-dev08:16
*** tahara has quit IRC08:16
*** VladDrac has quit IRC08:16
*** povbot has quit IRC08:16
einsmorning08:16
*** xenru has quit IRC08:16
*** SteveA has joined #zope3-dev08:16
*** GaryPoster has quit IRC08:17
*** lifeless has joined #zope3-dev08:17
*** tahara has joined #zope3-dev08:17
*** xenru has joined #zope3-dev08:17
*** d2m has joined #zope3-dev08:17
*** adamSummers has joined #zope3-dev08:17
*** nouri has joined #zope3-dev08:19
*** mp has joined #zope3-dev08:19
*** stub has quit IRC08:39
*** stub has joined #zope3-dev08:41
*** stub has quit IRC08:44
*** stub has joined #zope3-dev08:51
einshow do I programmatically grant permissions?08:55
taharayou can use IPrincipalPermissionMap adapter in zope.app.securitypolicy.08:58
* eins is looking at that09:00
taharaoops, sorry, the interface is IPrincipalPermissionManager.09:02
*** xenru|clone has joined #zope3-dev09:03
*** stub has quit IRC09:04
einsI tried using it yesterday, still trying:)09:04
*** dman13 has joined #zope3-dev09:12
taharaok, so you can grant permissions like this:09:17
taharamapping = IPrincipalPermissionManager(obj)09:18
taharamapping.grantPermissionToPrincipal('Zope.View', principal)09:19
*** xenru has quit IRC09:19
einstahara 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-dev09:37
taharaprincipalPermissionManager is used for principals declared in zcml.09:39
einsi see09:40
taharaso if you want to grant permission to object in zodb, you should not use principalPermissionManager.09:42
taharaI think many applications does not use principals.zcml because it is a static data.09:45
einsmoreover - I want to manage permissions for objects that are actually stored in rdb database09:47
taharaand generally you should not use principalPermissionManager, you can use it though zcml with grant directive.09:47
einsI already get principals from rdb09:47
einsand know trying to solve issues with setting permissions to these objects09:47
einsknow=now09:48
taharaI see.then you can implement your own IPrincipalRoleManager adapter.09:49
taharado you need to store permission mapping to rdb?09:54
einsI will need, but for now I'm trying to set up simple permission-to-principal example:)09:54
*** stub has joined #zope3-dev09:55
einsi already have 'xxx.yyy' principal, that I get from rdb, and want to assign it a permission 'zope.View'09:55
*** stub has quit IRC10:01
taharafor global?10:01
*** rom|zZZZ is now known as romanofski10:03
romanofskimoin10:03
taharahello.10:05
*** upsidedown has joined #zope3-dev10:16
*** upsidedown has left #zope3-dev10:17
einstahara for global what?10:17
einsromanofski morning;)10:17
*** jukart has joined #zope3-dev10:18
taharaah, sorry, you want to grant permissions for global setting?10:18
romanofskihi eins :)10:19
*** romanofski is now known as rom|aw10:19
*** jukart has left #zope3-dev10:20
einstahara I just want to get the idea of granting permissions from python code, not zcml:)10:20
einsit doesn't matter for me global or local at this time..10:20
*** BjornT has joined #zope3-dev10:23
taharaok. eins, I think this is a normal way to grant permissions from python code:10:33
taharamapping = IPrincipalPermissionManager(obj)10:34
taharamapping.grantPermissionToPrincipal('zope.View', principal)10:34
einsMacYET morning;)10:36
einsoops sorry10:36
taharathis is the same as above-mentioned...10:36
einstahara i'm trying that..10:36
einsand checking ZopeSecurityPolicy code to understand what does what10:38
*** Aiste has joined #zope3-dev10:58
einsok prinper = IPrincipalPermissionMap(parent, None) in cached_prinper in ZopeSecurityPolicy returns zope.app.securitypolicy.principalpermission.AnnotationPrincipalPermissionManager.11:16
einsthat's why my SQLPrincipalPermissionManager doesn't do anything good11:16
eins:)11:17
*** agroszer has joined #zope3-dev11:19
*** jinty has joined #zope3-dev11:21
*** tarek has joined #zope3-dev11:27
*** xenru|clone has quit IRC11:37
*** xenru has joined #zope3-dev12:19
*** stub has joined #zope3-dev12:42
*** stub has quit IRC12:43
*** stub has joined #zope3-dev12:44
*** andrew_m has joined #zope3-dev12:59
*** mgedmin has joined #zope3-dev13:10
*** faassen has joined #zope3-dev13:25
*** nouri has quit IRC13:26
*** pcardune has joined #zope3-dev13:27
*** andrew_m has left #zope3-dev13:36
*** tarek_ has joined #zope3-dev13:40
*** tarek has quit IRC13:41
*** ignas has joined #zope3-dev13:42
*** MacYET has joined #zope3-dev13:53
*** zagy has joined #zope3-dev14:01
*** niemeyer_ has joined #zope3-dev14:01
*** efrerich has joined #zope3-dev14:03
*** tarek has joined #zope3-dev14:07
*** tarek_ has quit IRC14:08
*** niemeyer_ is now known as niemeyer14:27
*** pcardune has quit IRC14:39
*** jinty_ has joined #zope3-dev14:40
*** zbir has quit IRC14:47
*** jinty has quit IRC14:47
*** jinty_ has quit IRC14:49
*** ChanServ sets mode: +o srichter14:49
*** vlado has joined #zope3-dev15:00
*** _anguenot has joined #zope3-dev15:01
*** jhauser has joined #zope3-dev15:25
*** mkerrin has joined #zope3-dev15:25
*** philiKON has joined #zope3-dev15:31
*** andres has quit IRC15:32
*** mgedmin has quit IRC15:44
*** andres has joined #zope3-dev16:00
andresjoin #crystalspace16:00
benjiandres, are you giving us a command, or perhaps asking permission?  :)16:02
andresbenji, im damaged my own keyboard ;-)16:03
andresand / only works if you use great pressure ;-)16:03
*** zbir has joined #zope3-dev16:07
*** efge has joined #zope3-dev16:19
*** GaryPoster has joined #zope3-dev16:26
*** J1m has joined #zope3-dev16:43
*** eins has quit IRC16:59
*** MrTopf has joined #zope3-dev17:13
srichterJ1m: you recently discussed on zope3-dev not proxying the modules variable for menu item filters17:29
srichterwere you for or against that move?17:29
srichterbecause I had this problem right now too and I would like to fix it17:29
J1mI was for not proxying things like modules.17:29
srichterok17:29
srichterso I can make the change?17:29
J1mcontext should remain proxied.17:29
srichterright, definitely17:30
J1miow, the filters should not create new proxies, but they shouldn't remove any.17:30
J1meither17:30
srichterok17:30
J1mwhere would you make the change?17:30
srichterin the menu item class17:31
J1mtrunk?17:31
J1m3.2?17:31
srichterit explicitely proxies sys.modules when creating the TALES engine17:31
srichteroh, both17:31
J1mIs this a bug fix?17:31
srichterI think it is17:31
srichterI think it was a misfeature17:31
J1mok, then go ahead. :)17:31
* J1m didn't hear that last bit17:32
srichterok :-)17:32
GaryPostersrichter: I think I fixed it, at least for trunk17:37
GaryPosterCan't remember (eye roll...sigh...)17:38
srichternot in 3.2, I just checked17:38
srichterGaryPoster: can you backport the fix?17:38
GaryPosteryeah, lemme see if I can find it quickly; one sec17:38
srichterbtw, in 3.3 I might propose to implement menus using viewlets; that will make menus much more powerful17:39
GaryPosterLog 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
GaryPosterDid not backport; didn't know it was appropriate17:39
GaryPosterI'll do the merge to 3.2 quickly now.17:40
srichterwell, it actually makes the filter quiet useless, since no module/package has secrity declarations17:40
GaryPosterrunning the tests always takes the longest. ;-)17:40
srichtergreat17:40
srichterI know17:40
GaryPosterActually, you can get around it in the filter by using a view: that's what I did.  Just extra unnecessary registration.17:41
srichteroh, jeez17:42
GaryPoster:-) that's when I sent the "let's not do this" email.17:42
*** j-w has left #zope3-dev17:42
GaryPosterOK, running tests.  be back soon.17:43
srichtercool17:43
*** zagy has quit IRC17:44
GaryPostersrichter: Committed revision 40984.17:50
srichterthanks a lot!17:56
*** jenner has joined #zope3-dev18:23
*** rom|aw is now known as romanofski18:33
*** andres has quit IRC18:53
*** philiKON has quit IRC19:04
*** vlado has quit IRC19:15
*** yota has joined #zope3-dev19:16
*** mgedmin has joined #zope3-dev19:41
* MacYET is away: kochen un dpacken19:58
* MacYET is away: kochen und packen19:58
*** ignas has quit IRC20:43
*** faassen has quit IRC21:03
*** _anguenot has quit IRC21:16
*** deo has joined #zope3-dev21:20
*** agroszer has quit IRC21:25
*** mkerrin has quit IRC21:32
*** zbir has quit IRC21:36
*** zbir has joined #zope3-dev21:59
*** zbir has quit IRC22:08
*** zbir has joined #zope3-dev22:08
*** zbir has quit IRC22:09
*** jhauser_ has joined #zope3-dev22:11
*** jhauser has quit IRC22:23
*** zbir has joined #zope3-dev22:28
*** MacYET has quit IRC22:33
*** mgedmin has quit IRC22:37
*** jhauser_ has quit IRC22:39
*** MrTopf has quit IRC22:49
*** jinty has joined #zope3-dev23:00
*** MacYET has joined #zope3-dev23:11
*** efrerich has quit IRC23:12
*** MacYET has quit IRC23:14
*** WebMaven has joined #zope3-dev23:42

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