IRC log of #zope for Friday, 2014-08-08

*** sheilatronica has quit IRC00:11
*** J1m has quit IRC00:17
*** J1m has joined #zope00:18
*** threesome has quit IRC00:47
*** Arfrever has quit IRC01:00
*** MrTango has quit IRC01:12
*** J1m has quit IRC01:32
*** giacomos has joined #zope01:46
*** KageSenshi has quit IRC02:34
*** acsr1 has joined #zope02:43
*** acsr has quit IRC02:45
*** sheilatronica has joined #zope02:51
*** Pumukel has quit IRC03:00
*** tiwula has quit IRC03:02
*** rbanffy_ has joined #zope03:33
*** rbanffy has quit IRC03:36
*** sheilatronica has quit IRC04:01
*** alecm has quit IRC04:38
*** alecm has joined #zope04:42
*** kosh has joined #zope04:57
*** menesis has quit IRC05:30
*** alecm has quit IRC06:05
*** alecm has joined #zope06:07
*** alecm has quit IRC06:09
*** alecm has joined #zope06:09
*** menesis has joined #zope06:10
*** alecm has quit IRC06:38
*** tisto has joined #zope07:23
*** menesis has quit IRC07:51
*** threesome has joined #zope08:31
*** kosh has quit IRC09:19
*** alecm has joined #zope09:23
*** agroszer has joined #zope09:28
*** avoinea has joined #zope10:08
*** fredvd has joined #zope10:21
*** acsr has joined #zope10:38
*** acsr1 has quit IRC10:40
*** RiverRat has quit IRC10:52
*** RiverRat has joined #zope10:52
*** giacomos has joined #zope10:53
*** acsr has quit IRC11:10
*** acsr has joined #zope11:16
*** acsr1 has joined #zope11:21
*** acsr has quit IRC11:21
*** maurits has joined #zope11:24
*** fredvd has quit IRC11:25
*** acsr has joined #zope11:30
*** acsr1 has quit IRC11:30
*** acsr1 has joined #zope11:35
*** acsr has quit IRC11:35
*** acsr has joined #zope11:48
*** acsr1 has quit IRC11:48
*** giacomos has quit IRC12:09
*** acsr has quit IRC12:10
*** giacomos has joined #zope12:22
*** Arfrever has joined #zope12:38
*** menesis has joined #zope12:47
*** MrTango has joined #zope13:08
*** giacomos has quit IRC13:15
*** tisto is now known as tisto|away13:15
*** giacomos has joined #zope13:22
*** fredvd has joined #zope13:47
*** alecm has quit IRC13:51
*** menesis has quit IRC14:07
*** giacomos has quit IRC14:25
*** tisto|away is now known as tisto14:27
*** MrTango has quit IRC14:36
*** menesis has joined #zope14:58
*** J1m has joined #zope16:26
*** MrTango has joined #zope16:36
*** kosh_ has joined #zope16:37
*** agroszer has quit IRC16:53
J1mmcdonc, I like talking to peaple. It's marketing I'm not fond of.17:08
*** alecm has joined #zope17:12
*** [Arfrever] has quit IRC17:22
kosh_J1m, does anyone like marketing?17:23
*** tiwula has joined #zope17:24
*** tisto has quit IRC17:27
J1mkosh_, 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 IRC17:44
*** kosh_ has quit IRC17:45
*** alecm has joined #zope17:48
Tod-WorkI 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 #zope18:13
Tod-WorkSo 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 set18:14
Tod-WorkI 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 engine18: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
benjiTod-Work: how about this: stackoverflow.com/questions/1222880/an-easy-way-to-redirect-certain-roles-in-zope18:19
benjiDisclaimer: I did very little Zope 2 and have forgotten almost everything about it.18:19
*** mup has quit IRC18:29
*** mup has joined #zope18:29
* J1m did very much Zope 2 and have forgottem almost everything about it18:37
J1mTod-Work, you might have more luck in #plone18:38
Tod-Workbenji, that may be a good point in the right direction18:38
Tod-WorkJ1m, I might try there, thanks18:38
MatthewWilkesTod-Work: raise Redirect ?18:44
Tod-WorkMatthewWilkes, Redirect(URL)?  Or set the redirect and then raise the exception?18:57
MatthewWilkesTod-Work: raise Redirect, url18:58
Tod-Workah18:58
MatthewWilkesI don't know if Redirect(url) works or not18:58
Tod-Workprobably depends on your version of python18:59
Tod-Work2.4 String-only exceptions I'm sure didn't like it19:00
Tod-WorkThat USED to work apparently, but this moved from an older CentOS&Python version and now it doesn't.  Very interesting19:11
*** fredvd has quit IRC19:13
*** sheilatron has joined #zope19:19
*** maurits has quit IRC19:22
*** rbanffy_ has quit IRC19:24
*** rbanffy_ has joined #zope19:25
*** rbanffy_ is now known as rbanffy19:25
*** MrTango has quit IRC19:27
*** acsr has joined #zope19:42
*** MrTango has joined #zope19:46
J1mMatthewWilkes, Tod-Work taise E(args) has worked more or less forever and is the preferred syntax.19:50
MatthewWilkesJ1m: I wasn't sure if the tuple syntax was some sort of ancient magic that I'd forgotten19:51
Tod-WorkJ1m, Yes, though some older software used the string syntax19:51
J1mraise E, arg is at least deprecated.19:52
Tod-WorkCalling 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
J1mIt got widespread use early on because it was slightly faster, because in some cases, it avoided instantiating the exception object.19:53
Tod-WorkAnyone know of a way to just say "respond now" ?19:53
J1mSince then, there are a lot of apis (e.g. dict.get) that avoid raising exceptions altogether.19:53
Tod-WorkJ1m, mmmm, yes.  meanwhile some other libs (like twisted) are a bit more exception happy these days19:55
*** yvl has quit IRC20:23
*** avoinea has quit IRC20:37
*** m8 has joined #zope20:57
*** acsr has quit IRC21:07
*** menesis has quit IRC21:22
*** moo-_- has quit IRC21:51
*** moo-_- has joined #zope21:53
*** RiverRat has quit IRC22:02
*** RiverRat has joined #zope22:02
*** menesis has joined #zope22:12
*** River_Rat has joined #zope22:34
*** River_Rat has joined #zope22:35
*** RiverRat has quit IRC22:37
*** River_Rat is now known as RiverRat22:44
*** MrTango has quit IRC22:54
*** Tod-Work has quit IRC23:01
*** Tod-Work has joined #zope23:12
*** benji has quit IRC23:42
*** alecm has quit IRC23:43

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