| *** Spanktar has joined #zope | 00:01 | |
| *** nenn3 has joined #zope | 00:03 | |
| *** jim_SFU has joined #zope | 00:09 | |
| *** jim_SFU has joined #zope | 00:11 | |
| *** jim_SFU is now known as JimB | 00:13 | |
| *** JimB is now known as JBG | 00:13 | |
| *** JBG is now known as jglenn | 00:14 | |
| *** jglenn has quit IRC | 00:22 | |
| *** AnneGilles has joined #zope | 00:23 | |
| *** TresEquis has quit IRC | 00:38 | |
| *** evilbungle has quit IRC | 00:55 | |
| *** elro has joined #zope | 01:12 | |
| *** elro has quit IRC | 01:28 | |
| *** nenn3 has quit IRC | 01:30 | |
| *** thetet has quit IRC | 01:42 | |
| *** J1m has quit IRC | 01:42 | |
| *** avoinea has quit IRC | 01:50 | |
| *** _mup_ has quit IRC | 02:00 | |
| *** _mup_ has joined #zope | 02:00 | |
| *** AnneGilles has quit IRC | 02:03 | |
| *** ccomb has joined #zope | 02:13 | |
| *** ccomb has quit IRC | 02:16 | |
| *** ccomb has joined #zope | 02:16 | |
| *** supton_ has joined #zope | 02:27 | |
| *** supton has quit IRC | 02:30 | |
| *** supton_ has quit IRC | 02:31 | |
| *** tiwula has quit IRC | 02:40 | |
| *** J1m has joined #zope | 02:46 | |
| *** J1m has quit IRC | 03:02 | |
| *** deux_ has joined #zope | 03:17 | |
| *** Spanktar is now known as spanktar|afk | 03:18 | |
| *** spanktar|afk is now known as Spanktar | 03:26 | |
| *** Spanktar has quit IRC | 03:41 | |
| *** menesis has quit IRC | 03:43 | |
| *** dayne1 has joined #zope | 04:34 | |
| *** dayne has quit IRC | 04:35 | |
| *** do3cc has quit IRC | 05:03 | |
| *** alexpilz1 has joined #zope | 05:06 | |
| *** alexpilz has quit IRC | 05:08 | |
| *** do3cc has joined #zope | 05:16 | |
| *** runyaga has joined #zope | 05:42 | |
| *** mr_jolly has joined #zope | 05:59 | |
| *** deux_ has quit IRC | 06:01 | |
| *** mr_jolly has quit IRC | 06:08 | |
| *** runyaga has quit IRC | 06:20 | |
| *** deux_ has joined #zope | 06:39 | |
| *** mr_jolly has joined #zope | 06:51 | |
| *** fmj has joined #zope | 07:10 | |
| *** deux_ has quit IRC | 07:11 | |
| *** deux_ has joined #zope | 07:44 | |
| *** fmj has quit IRC | 07:58 | |
| *** deux_ has quit IRC | 08:15 | |
| *** AnneGilles has joined #zope | 08:20 | |
| *** __mac__ has joined #zope | 09:01 | |
| *** tisto has joined #zope | 09:04 | |
| *** garbas has quit IRC | 09:09 | |
| *** garbas has joined #zope | 09:09 | |
| *** zagy has joined #zope | 09:16 | |
| *** agroszer has joined #zope | 09:28 | |
| *** mitchell`off is now known as mitchell` | 09:41 | |
| *** batlock666 has joined #zope | 09:46 | |
| *** J1m has joined #zope | 09:55 | |
| *** J1m has quit IRC | 10:25 | |
| *** MrTango has joined #zope | 10:25 | |
| *** avoinea has joined #zope | 10:36 | |
| *** alexpilz1 has quit IRC | 10:51 | |
| *** MrWu has joined #zope | 11:13 | |
| *** J1m has joined #zope | 11:21 | |
| *** alexpilz has joined #zope | 11:22 | |
| *** kiorky has quit IRC | 11:27 | |
| *** menesis has joined #zope | 11:47 | |
| *** kiorky has joined #zope | 12:00 | |
| *** goschtl has joined #zope | 12:12 | |
| *** menesis has quit IRC | 12:17 | |
| *** menesis has joined #zope | 12:22 | |
| *** teix has joined #zope | 12:33 | |
| *** tisto has quit IRC | 12:43 | |
| *** tisto has joined #zope | 12:55 | |
| *** avoinea has quit IRC | 13:01 | |
| *** avoinea has joined #zope | 13:01 | |
| *** jone has joined #zope | 13:07 | |
| *** goschtl has quit IRC | 13:09 | |
| *** goschtl has joined #zope | 13:13 | |
| *** thetet has joined #zope | 13:16 | |
| *** hever has joined #zope | 13:16 | |
| *** elro has joined #zope | 13:24 | |
| *** tisto is now known as tisto|lunch | 13:31 | |
| *** elro has quit IRC | 13:53 | |
| *** thetet has quit IRC | 13:55 | |
| *** goschtl has quit IRC | 14:07 | |
| *** thetet has joined #zope | 14:10 | |
| *** nenn3 has joined #zope | 14:13 | |
| *** evilbungle has joined #zope | 14:15 | |
| *** J1m has quit IRC | 14:17 | |
| *** evilbungle_ has joined #zope | 14:39 | |
| *** evilbungle has quit IRC | 14:39 | |
| *** evilbungle_ is now known as evilbungle | 14:39 | |
| *** tisto|lunch is now known as tisto | 14:52 | |
| *** elro has joined #zope | 14:58 | |
| *** MrWu has quit IRC | 15:00 | |
| *** fredvd has joined #zope | 15:19 | |
| *** jone has quit IRC | 15:42 | |
| *** cheefrocker has joined #zope | 15:42 | |
| cheefrocker | hi 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 grok | 15:43 |
|---|---|---|
| mitchell` | cheefrocker: from AccessControl import getSecurityManager | 15:59 |
| mitchell` | and from there you can get the user | 15:59 |
| mitchell` | security_manager.getUser() | 15:59 |
| cheefrocker | mitchell: thx i try it out | 16:00 |
| agroszer | cheefrocker, rather event.request.principal | 16:00 |
| mitchell` | ah | 16:00 |
| mitchell` | yes this is better ^^ | 16:00 |
| agroszer | if you're on grok/ZTK | 16:00 |
| *** yvl has quit IRC | 16:00 | |
| agroszer | see zope.publisher.interfaces __init__.py | 16:01 |
| *** J1m has joined #zope | 16:02 | |
| cheefrocker | i use @grok.subscribe(IStartRequestEvent) | 16:02 |
| cheefrocker | event.request.principal ist NoneType | 16:03 |
| agroszer | if I'm right that's the wrong event | 16:04 |
| agroszer | for you | 16: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 | ... | 16:05 |
| agroszer | request.setPrincipal(principal) | 16:05 |
| agroszer | zope.app.publication.zopepublication.ZopePublication | 16:05 |
| agroszer | (no idea how grok bends ZTK tho) | 16:06 |
| agroszer | that above means the even gets fired first, then the auth comes | 16:06 |
| agroszer | then the principal gets set | 16:06 |
| *** J1m has quit IRC | 16:07 | |
| cheefrocker | agreszer: 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 url | 16:08 |
| cheefrocker | and that for the hole sits | 16:08 |
| cheefrocker | site | 16:08 |
| agroszer | with plain ZTK I'd do an auth plugin | 16:09 |
| agroszer | zope.pluggableauth | 16:09 |
| agroszer | or z3c.authenticator | 16:09 |
| *** J1m has joined #zope | 16:09 | |
| agroszer | no idea what fits grok | 16:10 |
| cheefrocker | we make a own authplugin for grok based on zope.pluggableauth | 16:11 |
| cheefrocker | in this module i implement my logic of host_availibility_check | 16:11 |
| agroszer | if you have an auth plugin that works, then you're done I guess | 16:12 |
| agroszer | it either authenticates the user or not | 16:12 |
| cheefrocker | the 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 |
| agroszer | cache the credentials... | 16:16 |
| *** menesis has quit IRC | 16:16 | |
| cheefrocker | cache the credentials and check that in my istartrequestevent? | 16:17 |
| agroszer | no need to check, ZTK will recheck on each request | 16:19 |
| agroszer | the username/pwd is stored usually in the session | 16:20 |
| agroszer | SessionCredentialsPlugin | 16:21 |
| agroszer | PrincipalFolder.authenticateCredentials does authentication on each request | 16:21 |
| cheefrocker | ok | 16:22 |
| agroszer | add some breakpoints/logger entries then you'll see | 16:23 |
| cheefrocker | thx. i will have a look on it and try it out. thx mitchell and agrozer. | 16:23 |
| cheefrocker | maybe i have some questions later! | 16:23 |
| *** cheefrocker has quit IRC | 16:29 | |
| *** batlock666 has quit IRC | 16:51 | |
| *** evilbungle has quit IRC | 17:05 | |
| *** avoinea has quit IRC | 17:22 | |
| *** avoinea has joined #zope | 17:22 | |
| *** menesis has joined #zope | 17:28 | |
| *** evilbungle has joined #zope | 17:46 | |
| *** __mac__ has quit IRC | 17:49 | |
| *** agroszer has quit IRC | 18:02 | |
| *** supton has joined #zope | 18:04 | |
| *** thetet has quit IRC | 18:05 | |
| *** TresEquis has joined #zope | 18:20 | |
| *** cwarner has joined #zope | 18:23 | |
| *** zagy has quit IRC | 18:32 | |
| *** daMaestro has joined #zope | 18:36 | |
| *** tiwula has joined #zope | 18:48 | |
| *** cwarner has quit IRC | 18:54 | |
| *** cwarner has joined #zope | 18:55 | |
| *** avoinea has quit IRC | 19:09 | |
| *** tisto has quit IRC | 19:11 | |
| *** Spanktar has joined #zope | 19:28 | |
| *** alexpilz has quit IRC | 19:36 | |
| *** kevc has joined #zope | 19:37 | |
| kevc | anyone here use zope from macports? | 19:37 |
| kevc | x | 19:37 |
| kevc | it looks like the port is broken, it doesn't run out of the box | 19:38 |
| *** elro has quit IRC | 19:38 | |
| kevc | I can't tell if that's because of lack of python2.6 support, but it looks like python2.6 was explicitly defined as supported | 19:39 |
| *** fredvd has quit IRC | 19:41 | |
| *** Spanktar has quit IRC | 19:51 | |
| *** Spanktar has joined #zope | 19:51 | |
| *** alexpilz has joined #zope | 20:04 | |
| *** runyaga has joined #zope | 20:26 | |
| *** runyaga has quit IRC | 20:26 | |
| *** runyaga has joined #zope | 20:26 | |
| *** m8 has joined #zope | 20:45 | |
| *** rbanffy has joined #zope | 20:48 | |
| *** evilbungle has quit IRC | 20:52 | |
| *** hever has quit IRC | 20:58 | |
| *** mr_jolly has left #zope | 21:01 | |
| *** do3cc has quit IRC | 21:21 | |
| *** povbot has joined #zope | 21:27 | |
| TresEquis | kevc, what version of Zope? | 21:31 |
| *** m8 has quit IRC | 22:15 | |
| *** alexpilz has quit IRC | 22:28 | |
| *** m8 has joined #zope | 23:07 | |
| *** mr_jolly has joined #zope | 23:08 | |
| *** teix has quit IRC | 23:28 | |
| *** AnneGilles_ has joined #zope | 23:34 | |
| *** m8 has quit IRC | 23:37 | |
| *** AnneGilles has quit IRC | 23:37 | |
| *** AnneGilles_ is now known as AnneGilles | 23:37 | |
| *** m8 has joined #zope | 23:42 | |
Generated by irclog2html.py 4.0.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!