IRC log of #zope for Friday, 2011-12-09

*** Spanktar has joined #zope00:01
*** nenn3 has joined #zope00:03
*** jim_SFU has joined #zope00:09
*** jim_SFU has joined #zope00:11
*** jim_SFU is now known as JimB00:13
*** JimB is now known as JBG00:13
*** JBG is now known as jglenn00:14
*** jglenn has quit IRC00:22
*** AnneGilles has joined #zope00:23
*** TresEquis has quit IRC00:38
*** evilbungle has quit IRC00:55
*** elro has joined #zope01:12
*** elro has quit IRC01:28
*** nenn3 has quit IRC01:30
*** thetet has quit IRC01:42
*** J1m has quit IRC01:42
*** avoinea has quit IRC01:50
*** _mup_ has quit IRC02:00
*** _mup_ has joined #zope02:00
*** AnneGilles has quit IRC02:03
*** ccomb has joined #zope02:13
*** ccomb has quit IRC02:16
*** ccomb has joined #zope02:16
*** supton_ has joined #zope02:27
*** supton has quit IRC02:30
*** supton_ has quit IRC02:31
*** tiwula has quit IRC02:40
*** J1m has joined #zope02:46
*** J1m has quit IRC03:02
*** deux_ has joined #zope03:17
*** Spanktar is now known as spanktar|afk03:18
*** spanktar|afk is now known as Spanktar03:26
*** Spanktar has quit IRC03:41
*** menesis has quit IRC03:43
*** dayne1 has joined #zope04:34
*** dayne has quit IRC04:35
*** do3cc has quit IRC05:03
*** alexpilz1 has joined #zope05:06
*** alexpilz has quit IRC05:08
*** do3cc has joined #zope05:16
*** runyaga has joined #zope05:42
*** mr_jolly has joined #zope05:59
*** deux_ has quit IRC06:01
*** mr_jolly has quit IRC06:08
*** runyaga has quit IRC06:20
*** deux_ has joined #zope06:39
*** mr_jolly has joined #zope06:51
*** fmj has joined #zope07:10
*** deux_ has quit IRC07:11
*** deux_ has joined #zope07:44
*** fmj has quit IRC07:58
*** deux_ has quit IRC08:15
*** AnneGilles has joined #zope08:20
*** __mac__ has joined #zope09:01
*** tisto has joined #zope09:04
*** garbas has quit IRC09:09
*** garbas has joined #zope09:09
*** zagy has joined #zope09:16
*** agroszer has joined #zope09:28
*** mitchell`off is now known as mitchell`09:41
*** batlock666 has joined #zope09:46
*** J1m has joined #zope09:55
*** J1m has quit IRC10:25
*** MrTango has joined #zope10:25
*** avoinea has joined #zope10:36
*** alexpilz1 has quit IRC10:51
*** MrWu has joined #zope11:13
*** J1m has joined #zope11:21
*** alexpilz has joined #zope11:22
*** kiorky has quit IRC11:27
*** menesis has joined #zope11:47
*** kiorky has joined #zope12:00
*** goschtl has joined #zope12:12
*** menesis has quit IRC12:17
*** menesis has joined #zope12:22
*** teix has joined #zope12:33
*** tisto has quit IRC12:43
*** tisto has joined #zope12:55
*** avoinea has quit IRC13:01
*** avoinea has joined #zope13:01
*** jone has joined #zope13:07
*** goschtl has quit IRC13:09
*** goschtl has joined #zope13:13
*** thetet has joined #zope13:16
*** hever has joined #zope13:16
*** elro has joined #zope13:24
*** tisto is now known as tisto|lunch13:31
*** elro has quit IRC13:53
*** thetet has quit IRC13:55
*** goschtl has quit IRC14:07
*** thetet has joined #zope14:10
*** nenn3 has joined #zope14:13
*** evilbungle has joined #zope14:15
*** J1m has quit IRC14:17
*** evilbungle_ has joined #zope14:39
*** evilbungle has quit IRC14:39
*** evilbungle_ is now known as evilbungle14:39
*** tisto|lunch is now known as tisto14:52
*** elro has joined #zope14:58
*** MrWu has quit IRC15:00
*** fredvd has joined #zope15:19
*** jone has quit IRC15:42
*** cheefrocker has joined #zope15:42
cheefrockerhi all. can somebody help me? i have a <class 'zope.publisher.interfaces.StartRequestEvent'> object. and i want to get a request.principal from this. how can i do this? I use it in the context of grok15:43
mitchell`cheefrocker: from AccessControl import getSecurityManager15:59
mitchell`and from there you can get the user15:59
cheefrockermitchell: thx i try it out16:00
agroszercheefrocker, rather event.request.principal16:00
mitchell`yes this is better ^^16:00
agroszerif you're on grok/ZTK16:00
*** yvl has quit IRC16:00
agroszersee zope.publisher.interfaces __init__.py16:01
*** J1m has joined #zope16:02
cheefrocker i use @grok.subscribe(IStartRequestEvent)16:02
cheefrockerevent.request.principal ist NoneType16:03
agroszerif I'm right that's the wrong event16:04
agroszerfor you16:05
agroszer        notify(StartRequestEvent(request))16:05
agroszer        # Try to authenticate against the root authentication utility.16:05
agroszer        auth = zope.component.getGlobalSiteManager().getUtility(16:05
agroszer            zope.authentication.interfaces.IAuthentication)16:05
agroszer(no idea how grok bends ZTK tho)16:06
agroszerthat above means the even gets fired first, then the auth comes16:06
agroszerthen the principal gets set16:06
*** J1m has quit IRC16:07
cheefrockeragreszer: you are right. i want to check the backend(webservices) for unauthorized and authorized principals. i want to register if the backend go off and redirect the user to a specific url16:08
cheefrockerand that for the hole sits16:08
agroszerwith plain ZTK I'd do an auth plugin16:09
agroszeror z3c.authenticator16:09
*** J1m has joined #zope16:09
agroszerno idea what fits grok16:10
cheefrockerwe make a own authplugin for grok based on zope.pluggableauth16:11
cheefrockerin this module i implement my logic of host_availibility_check16:11
agroszerif you have an auth plugin that works, then you're done I guess16:12
agroszerit either authenticates the user or not16:12
cheefrockerthe webservices i use are not 100% available of the time. so if the user is also logged in and open a project that use the webservice that is down at the moment gets an error.16:15
agroszercache the credentials...16:16
*** menesis has quit IRC16:16
cheefrockercache the credentials and check that in my istartrequestevent?16:17
agroszerno need to check, ZTK will recheck on each request16:19
agroszerthe username/pwd is stored usually in the session16:20
agroszerPrincipalFolder.authenticateCredentials does authentication on each request16:21
agroszeradd some breakpoints/logger entries then you'll see16:23
cheefrockerthx. i will have a look on it and try it out. thx mitchell and agrozer.16:23
cheefrockermaybe i have some questions later!16:23
*** cheefrocker has quit IRC16:29
*** batlock666 has quit IRC16:51
*** evilbungle has quit IRC17:05
*** avoinea has quit IRC17:22
*** avoinea has joined #zope17:22
*** menesis has joined #zope17:28
*** evilbungle has joined #zope17:46
*** __mac__ has quit IRC17:49
*** agroszer has quit IRC18:02
*** supton has joined #zope18:04
*** thetet has quit IRC18:05
*** TresEquis has joined #zope18:20
*** cwarner has joined #zope18:23
*** zagy has quit IRC18:32
*** daMaestro has joined #zope18:36
*** tiwula has joined #zope18:48
*** cwarner has quit IRC18:54
*** cwarner has joined #zope18:55
*** avoinea has quit IRC19:09
*** tisto has quit IRC19:11
*** Spanktar has joined #zope19:28
*** alexpilz has quit IRC19:36
*** kevc has joined #zope19:37
kevcanyone here use zope from macports?19:37
kevcit looks like the port is broken, it doesn't run out of the box19:38
*** elro has quit IRC19:38
kevcI can't tell if that's because of lack of python2.6 support, but it looks like python2.6 was explicitly defined as supported19:39
*** fredvd has quit IRC19:41
*** Spanktar has quit IRC19:51
*** Spanktar has joined #zope19:51
*** alexpilz has joined #zope20:04
*** runyaga has joined #zope20:26
*** runyaga has quit IRC20:26
*** runyaga has joined #zope20:26
*** m8 has joined #zope20:45
*** rbanffy has joined #zope20:48
*** evilbungle has quit IRC20:52
*** hever has quit IRC20:58
*** mr_jolly has left #zope21:01
*** do3cc has quit IRC21:21
*** povbot has joined #zope21:27
TresEquiskevc, what version of Zope?21:31
*** m8 has quit IRC22:15
*** alexpilz has quit IRC22:28
*** m8 has joined #zope23:07
*** mr_jolly has joined #zope23:08
*** teix has quit IRC23:28
*** AnneGilles_ has joined #zope23:34
*** m8 has quit IRC23:37
*** AnneGilles has quit IRC23:37
*** AnneGilles_ is now known as AnneGilles23:37
*** m8 has joined #zope23:42

Generated by 2.15.1 by Marius Gedminas - find it at!