*** sheilatronica has quit IRC | 00:11 | |
*** J1m has quit IRC | 00:17 | |
*** J1m has joined #zope | 00:18 | |
*** threesome has quit IRC | 00:47 | |
*** Arfrever has quit IRC | 01:00 | |
*** MrTango has quit IRC | 01:12 | |
*** J1m has quit IRC | 01:32 | |
*** giacomos has joined #zope | 01:46 | |
*** KageSenshi has quit IRC | 02:34 | |
*** acsr1 has joined #zope | 02:43 | |
*** acsr has quit IRC | 02:45 | |
*** sheilatronica has joined #zope | 02:51 | |
*** Pumukel has quit IRC | 03:00 | |
*** tiwula has quit IRC | 03:02 | |
*** rbanffy_ has joined #zope | 03:33 | |
*** rbanffy has quit IRC | 03:36 | |
*** sheilatronica has quit IRC | 04:01 | |
*** alecm has quit IRC | 04:38 | |
*** alecm has joined #zope | 04:42 | |
*** kosh has joined #zope | 04:57 | |
*** menesis has quit IRC | 05:30 | |
*** alecm has quit IRC | 06:05 | |
*** alecm has joined #zope | 06:07 | |
*** alecm has quit IRC | 06:09 | |
*** alecm has joined #zope | 06:09 | |
*** menesis has joined #zope | 06:10 | |
*** alecm has quit IRC | 06:38 | |
*** tisto has joined #zope | 07:23 | |
*** menesis has quit IRC | 07:51 | |
*** threesome has joined #zope | 08:31 | |
*** kosh has quit IRC | 09:19 | |
*** alecm has joined #zope | 09:23 | |
*** agroszer has joined #zope | 09:28 | |
*** avoinea has joined #zope | 10:08 | |
*** fredvd has joined #zope | 10:21 | |
*** acsr has joined #zope | 10:38 | |
*** acsr1 has quit IRC | 10:40 | |
*** RiverRat has quit IRC | 10:52 | |
*** RiverRat has joined #zope | 10:52 | |
*** giacomos has joined #zope | 10:53 | |
*** acsr has quit IRC | 11:10 | |
*** acsr has joined #zope | 11:16 | |
*** acsr1 has joined #zope | 11:21 | |
*** acsr has quit IRC | 11:21 | |
*** maurits has joined #zope | 11:24 | |
*** fredvd has quit IRC | 11:25 | |
*** acsr has joined #zope | 11:30 | |
*** acsr1 has quit IRC | 11:30 | |
*** acsr1 has joined #zope | 11:35 | |
*** acsr has quit IRC | 11:35 | |
*** acsr has joined #zope | 11:48 | |
*** acsr1 has quit IRC | 11:48 | |
*** giacomos has quit IRC | 12:09 | |
*** acsr has quit IRC | 12:10 | |
*** giacomos has joined #zope | 12:22 | |
*** Arfrever has joined #zope | 12:38 | |
*** menesis has joined #zope | 12:47 | |
*** MrTango has joined #zope | 13:08 | |
*** giacomos has quit IRC | 13:15 | |
*** tisto is now known as tisto|away | 13:15 | |
*** giacomos has joined #zope | 13:22 | |
*** fredvd has joined #zope | 13:47 | |
*** alecm has quit IRC | 13:51 | |
*** menesis has quit IRC | 14:07 | |
*** giacomos has quit IRC | 14:25 | |
*** tisto|away is now known as tisto | 14:27 | |
*** MrTango has quit IRC | 14:36 | |
*** menesis has joined #zope | 14:58 | |
*** J1m has joined #zope | 16:26 | |
*** MrTango has joined #zope | 16:36 | |
*** kosh_ has joined #zope | 16:37 | |
*** agroszer has quit IRC | 16:53 | |
J1m | mcdonc, I like talking to peaple. It's marketing I'm not fond of. | 17:08 |
---|---|---|
*** alecm has joined #zope | 17:12 | |
*** [Arfrever] has quit IRC | 17:22 | |
kosh_ | J1m, does anyone like marketing? | 17:23 |
*** tiwula has joined #zope | 17:24 | |
*** tisto has quit IRC | 17:27 | |
J1m | kosh_, yes, or can at least tolerate it and are good at it. | 17:29 |
kosh_ | just a little over a month left in the usa and then I am heading to germany for a masters degree and phd :) | 17:31 |
*** alecm has quit IRC | 17:44 | |
*** kosh_ has quit IRC | 17:45 | |
*** alecm has joined #zope | 17:48 | |
Tod-Work | I have a legacy zope2 thing, I have a subdir with a user folder. That subdir/app is self-contained. When a user in that folder tries to access something they shouldn't, I don't want to throw an error or ask for other credentials via the basic auth system. How do I redirect them to a login page in a "Zope" way? | 18:12 |
*** [Arfrever] has joined #zope | 18:13 | |
Tod-Work | So far I've tried raising an exception, which just gives an error for obvious reasons, and I've tried using request.response.redirect() to push them to a login page with a redirecturl set | 18:14 |
Tod-Work | I could force this a number of ways, I'm sure, but I would rather do it in a way that's preferential to the zope engine | 18:15 |
Tod-Work | (I'm sorry if this is rather basic. I abandoned zope a decade ago, so what little I had in mind I never remembered.) | 18:15 |
benji | Tod-Work: how about this: stackoverflow.com/questions/1222880/an-easy-way-to-redirect-certain-roles-in-zope | 18:19 |
benji | Disclaimer: I did very little Zope 2 and have forgotten almost everything about it. | 18:19 |
*** mup has quit IRC | 18:29 | |
*** mup has joined #zope | 18:29 | |
* J1m did very much Zope 2 and have forgottem almost everything about it | 18:37 | |
J1m | Tod-Work, you might have more luck in #plone | 18:38 |
Tod-Work | benji, that may be a good point in the right direction | 18:38 |
Tod-Work | J1m, I might try there, thanks | 18:38 |
MatthewWilkes | Tod-Work: raise Redirect ? | 18:44 |
Tod-Work | MatthewWilkes, Redirect(URL)? Or set the redirect and then raise the exception? | 18:57 |
MatthewWilkes | Tod-Work: raise Redirect, url | 18:58 |
Tod-Work | ah | 18:58 |
MatthewWilkes | I don't know if Redirect(url) works or not | 18:58 |
Tod-Work | probably depends on your version of python | 18:59 |
Tod-Work | 2.4 String-only exceptions I'm sure didn't like it | 19:00 |
Tod-Work | That USED to work apparently, but this moved from an older CentOS&Python version and now it doesn't. Very interesting | 19:11 |
*** fredvd has quit IRC | 19:13 | |
*** sheilatron has joined #zope | 19:19 | |
*** maurits has quit IRC | 19:22 | |
*** rbanffy_ has quit IRC | 19:24 | |
*** rbanffy_ has joined #zope | 19:25 | |
*** rbanffy_ is now known as rbanffy | 19:25 | |
*** MrTango has quit IRC | 19:27 | |
*** acsr has joined #zope | 19:42 | |
*** MrTango has joined #zope | 19:46 | |
J1m | MatthewWilkes, Tod-Work taise E(args) has worked more or less forever and is the preferred syntax. | 19:50 |
MatthewWilkes | J1m: I wasn't sure if the tuple syntax was some sort of ancient magic that I'd forgotten | 19:51 |
Tod-Work | J1m, Yes, though some older software used the string syntax | 19:51 |
J1m | raise E, arg is at least deprecated. | 19:52 |
Tod-Work | Calling request.response.redirect() seems to just set some data in the response, NOT instantly reply with a redirect. That's probably good, I guess, but other auth layers in the folder above (or something) are getting in the way of that doing anything. | 19:52 |
J1m | It got widespread use early on because it was slightly faster, because in some cases, it avoided instantiating the exception object. | 19:53 |
Tod-Work | Anyone know of a way to just say "respond now" ? | 19:53 |
J1m | Since then, there are a lot of apis (e.g. dict.get) that avoid raising exceptions altogether. | 19:53 |
Tod-Work | J1m, mmmm, yes. meanwhile some other libs (like twisted) are a bit more exception happy these days | 19:55 |
*** yvl has quit IRC | 20:23 | |
*** avoinea has quit IRC | 20:37 | |
*** m8 has joined #zope | 20:57 | |
*** acsr has quit IRC | 21:07 | |
*** menesis has quit IRC | 21:22 | |
*** moo-_- has quit IRC | 21:51 | |
*** moo-_- has joined #zope | 21:53 | |
*** RiverRat has quit IRC | 22:02 | |
*** RiverRat has joined #zope | 22:02 | |
*** menesis has joined #zope | 22:12 | |
*** River_Rat has joined #zope | 22:34 | |
*** River_Rat has joined #zope | 22:35 | |
*** RiverRat has quit IRC | 22:37 | |
*** River_Rat is now known as RiverRat | 22:44 | |
*** MrTango has quit IRC | 22:54 | |
*** Tod-Work has quit IRC | 23:01 | |
*** Tod-Work has joined #zope | 23:12 | |
*** benji has quit IRC | 23:42 | |
*** alecm has quit IRC | 23:43 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!