Camelia, the Perl 6 bug

IRC log for #mojo, 2012-07-22

| Channels | #mojo index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:57 preflex_ joined #mojo
01:13 ispy_ joined #mojo
01:50 ispyhumanfly joined #mojo
02:25 athenot joined #mojo
02:28 omega joined #mojo
02:28 DaTa joined #mojo
02:28 BlueT_ joined #mojo
02:28 gizzlon joined #mojo
02:28 zipkid joined #mojo
02:28 burk joined #mojo
02:28 ispy_ joined #mojo
02:29 phips joined #mojo
02:29 MisterHatt joined #mojo
02:29 mikegrb joined #mojo
02:29 ruz joined #mojo
02:29 stephan48 joined #mojo
02:29 cosimo joined #mojo
02:29 mike_ joined #mojo
02:29 trone joined #mojo
02:31 kenjiskywalker joined #mojo
02:31 bzero joined #mojo
02:32 drift_ joined #mojo
02:34 Liam`` joined #mojo
02:34 marcus_ joined #mojo
02:35 ispyhumanfly joined #mojo
02:36 estrai joined #mojo
02:36 ruz joined #mojo
02:36 whee joined #mojo
02:36 alnewkirk joined #mojo
02:36 t[r]oll joined #mojo
02:36 heytrav joined #mojo
02:37 kenjiskywalker joined #mojo
02:37 omega joined #mojo
02:37 yko joined #mojo
02:37 edenc joined #mojo
02:38 inokenty joined #mojo
02:38 Britzel joined #mojo
02:44 korshak joined #mojo
02:45 t[r]oll joined #mojo
02:45 bjoernfan joined #mojo
02:45 nuba joined #mojo
02:45 avenj joined #mojo
02:45 phips joined #mojo
02:45 Patterner joined #mojo
02:45 jamesw joined #mojo
02:45 Mad_Dud joined #mojo
02:45 crab joined #mojo
02:45 zivester joined #mojo
02:45 geira joined #mojo
02:45 x86 joined #mojo
02:45 Ulti joined #mojo
02:45 Annihitek joined #mojo
02:45 ashleydev joined #mojo
02:45 kmx joined #mojo
02:45 tinx joined #mojo
02:45 gabiruh joined #mojo
02:45 spacebat joined #mojo
02:45 noganex joined #mojo
02:45 plu joined #mojo
02:45 rwstauner joined #mojo
02:45 migo joined #mojo
02:45 jmmills joined #mojo
02:45 cosimo joined #mojo
02:45 stephan48 joined #mojo
02:45 MisterHatt joined #mojo
02:45 burk joined #mojo
02:45 jontaylor joined #mojo
02:45 garu joined #mojo
02:45 BinGOs joined #mojo
02:45 jzawodn joined #mojo
02:45 hide joined #mojo
02:45 keedi joined #mojo
02:45 xxtjaxx_ joined #mojo
02:45 tokuhirom joined #mojo
02:45 robinsmidsrod joined #mojo
02:45 njlg joined #mojo
02:45 ryanc joined #mojo
02:45 nic joined #mojo
02:45 angelixd joined #mojo
02:45 atrodo joined #mojo
02:45 charsbar__ joined #mojo
02:46 omega_ joined #mojo
02:47 angelixd_ joined #mojo
02:47 bzero joined #mojo
02:51 edenc joined #mojo
02:51 ruz joined #mojo
02:58 DaTa joined #mojo
02:59 rwstauner joined #mojo
03:02 noganex_ joined #mojo
03:09 ahasson joined #mojo
03:12 phips_ joined #mojo
03:12 rakshasa joined #mojo
03:13 jmmills joined #mojo
03:13 diegok joined #mojo
03:13 plu joined #mojo
03:14 noganex joined #mojo
03:14 bjoernfan joined #mojo
03:14 atrodo joined #mojo
03:15 jwang joined #mojo
03:16 angelixd joined #mojo
03:16 migo joined #mojo
03:16 Patterner joined #mojo
03:16 rwstauner joined #mojo
03:16 t[r]oll joined #mojo
03:16 jamesw joined #mojo
03:16 Mad_Dud joined #mojo
03:16 crab joined #mojo
03:16 zivester joined #mojo
03:16 geira joined #mojo
03:16 x86 joined #mojo
03:16 Ulti joined #mojo
03:16 Annihitek joined #mojo
03:16 ashleydev joined #mojo
03:16 kmx joined #mojo
03:16 tinx joined #mojo
03:16 gabiruh joined #mojo
03:16 spacebat joined #mojo
03:17 nuba joined #mojo
03:20 ah joined #mojo
03:27 tempire joined #mojo
03:28 DaTa joined #mojo
03:29 ah hi there, I use Mojolicious::Plugin::Authentication in a full app, I've configured it so that $authenticated = $r->route('/protected')->to(cb => sub {my $sefl = shift; $self->is_user_authenticated ? return 1 : $self->redirect_to('login') and return 0; }); but this seems to be breaking content negotiation in any thereof protected route!
03:32 ah so if $authenticated->get('/member​s')->to('controller#action') .. and controller had $self->respond_to(json => sub { ... }, html => { ... }); I'd always get the html rendered template
03:34 ah any hints ?
03:35 tempire I've never used ::Authentication, myself
03:36 ah yeah, I figured it would be easier to use someone elses auth plugin than write my own, guess not :(
03:37 ah but the problem, I think, it not the ::Authentication plugin itself, just the way the cb is written .. in the cb sub ref, I'm returning 1 and that seems to be ending the processing of the request/response
03:37 ah is not *
03:39 ah i.e., in the cb, return 1 if condition was successful, wouldn't that mean "return 1 and don't pass things on to $authenticated->get('/member​s')->to('controller#action') ?
03:40 ah because the cb stash value is used to bypass the controller and execute the callback instead
04:07 sri http://mojolicio.us/perldoc/Moj​olicious/Guides/Routing#Bridges
04:19 ah sri: thanks, I've changed it to a bridge and things seem to start working as expected, although I've also changed the authentication check sub in the controller itself to get it to work
04:23 GitHub122 joined #mojo
04:23 GitHub122 [mojo] kraih pushed 1 new commit to master: http://git.io/BZaXGA
04:23 GitHub122 [mojo/master] mention that app and cb stash values are not inherited - Sebastian Riedel
04:23 GitHub122 left #mojo
04:29 ah thanks, that makes it a bit more obvios :)
04:29 ah obvious *
05:52 robinsmidsrod joined #mojo
06:18 rwstaune` joined #mojo
06:54 Vandal joined #mojo
06:55 mire joined #mojo
07:12 Britzel joined #mojo
07:16 ryozi joined #mojo
07:17 tempire_ joined #mojo
07:53 baton8 joined #mojo
09:43 jontaylor joined #mojo
10:21 sd joined #mojo
10:21 sd Good morning
10:21 sd I've read that values stored in the stash are persistent across requests, does this include redirects as well?
10:28 sd whoops, never mind, should have rtfm'ed better.
10:55 dvinciguerra joined #mojo
11:11 hipyhop joined #mojo
12:19 Htbaa joined #mojo
12:24 crab sd: they're *not* persistent across requests. if you want something that persists across a redirect, you can use the flash.
12:36 Htbaa does Mojo::Template support something like PHP's Smarty {literal} tag? That is, don't parse whatever that's inside that block: http://www.smarty.net/docsv2/en​/language.function.literal.tpl
12:39 Htbaa looking into using Backbons.js and the templating language for the views uses the same markup as Mojo::Template
12:41 crab well, it's similar.
12:41 crab i take it the point of a {} tag is to embed markup which isn't processed?
12:42 Htbaa the logic inside the javascript templates uses <%= %>, just like Mojo
12:42 Htbaa I know I can change these tags for Mojo, but I'd rather not
12:58 Foxcool joined #mojo
13:11 * sri is in the mood for some mongodb hacking :o
13:16 mire joined #mojo
13:25 ZadYree yey
13:30 Htbaa hmm I can also change the tags for underscore's template function
13:50 gryphon joined #mojo
15:48 xaka joined #mojo
17:04 d4rkie joined #mojo
17:19 xaka joined #mojo
17:19 Mad_Dud- joined #mojo
17:20 D4RK-PH0ENiX joined #mojo
17:22 Mikey_ joined #mojo
17:22 cosimo joined #mojo
17:22 tinx joined #mojo
17:22 migo joined #mojo
17:23 burk joined #mojo
17:23 MisterHatt joined #mojo
17:23 plu_ joined #mojo
17:23 angelixd joined #mojo
17:23 ryanc joined #mojo
17:23 t[r]oll joined #mojo
17:23 bzero joined #mojo
17:24 cfouts joined #mojo
17:24 BlueT_ joined #mojo
17:24 Vandal joined #mojo
17:25 njlg joined #mojo
17:26 phillipadsmith joined #mojo
17:26 Annihitek joined #mojo
17:26 jamesw joined #mojo
17:26 x86 joined #mojo
17:26 Ulti joined #mojo
17:26 kmx joined #mojo
17:26 gabiruh joined #mojo
17:26 spacebat joined #mojo
17:26 zivester joined #mojo
17:26 tokuhirom joined #mojo
17:26 geira joined #mojo
17:26 charsbar__ joined #mojo
17:26 tempire joined #mojo
17:26 Britzel joined #mojo
17:26 robinsmidsrod joined #mojo
17:26 ZadYree joined #mojo
17:26 stephan48 joined #mojo
17:26 ashleydev joined #mojo
17:26 dvinciguerra joined #mojo
17:26 jmmills joined #mojo
17:26 garu joined #mojo
17:26 BinGOs joined #mojo
17:26 jzawodn joined #mojo
17:26 hide joined #mojo
17:26 keedi joined #mojo
17:26 nic joined #mojo
17:26 rwstauner joined #mojo
17:27 bjoernfan joined #mojo
17:27 bzero joined #mojo
17:28 xxtjaxx_ joined #mojo
17:28 baton8 joined #mojo
17:30 ladnaV joined #mojo
17:32 tempire joined #mojo
17:33 nuba joined #mojo
17:34 bobkare joined #mojo
17:34 ruz joined #mojo
17:35 Psyche^ joined #mojo
17:45 mikegrb_ joined #mojo
17:46 robinsmidsrod joined #mojo
17:46 Patterner joined #mojo
17:46 ruz joined #mojo
17:46 nuba joined #mojo
17:46 tempire joined #mojo
17:46 phillipadsmith joined #mojo
17:46 Annihitek joined #mojo
17:46 jamesw joined #mojo
17:46 x86 joined #mojo
17:46 Ulti joined #mojo
17:46 kmx joined #mojo
17:46 gabiruh joined #mojo
17:46 spacebat joined #mojo
17:47 bobkare_ joined #mojo
17:53 DaTa joined #mojo
17:57 robins joined #mojo
17:58 atrodo joined #mojo
18:00 Psyche^ joined #mojo
18:00 baton8 joined #mojo
18:01 njlg_ joined #mojo
18:03 mikegrb joined #mojo
18:03 zivester_ joined #mojo
18:05 robinsmidsrod joined #mojo
18:05 stephanj joined #mojo
18:05 tokuhirom joined #mojo
18:06 bjoernfan joined #mojo
18:07 ruz joined #mojo
18:07 Britzel joined #mojo
18:08 baton8 joined #mojo
18:12 njlg_ joined #mojo
18:12 bobkare joined #mojo
18:12 phillipadsmith joined #mojo
18:12 Annihitek joined #mojo
18:12 x86 joined #mojo
18:12 Ulti joined #mojo
18:12 kmx joined #mojo
18:12 gabiruh joined #mojo
18:12 spacebat joined #mojo
18:12 rem_lex|pivo joined #mojo
18:14 bobkare joined #mojo
18:14 tempire joined #mojo
18:14 ruz joined #mojo
18:15 charsbar__ joined #mojo
18:15 mikegrb joined #mojo
18:15 bzero joined #mojo
18:15 ZadYree joined #mojo
18:15 ashleydev joined #mojo
18:15 dvinciguerra joined #mojo
18:15 jmmills joined #mojo
18:15 garu joined #mojo
18:15 BinGOs joined #mojo
18:15 jzawodn joined #mojo
18:15 hide joined #mojo
18:15 keedi joined #mojo
18:15 nic joined #mojo
18:15 xaka joined #mojo
18:16 xaka1 joined #mojo
18:18 Psyche^ joined #mojo
18:21 nuba joined #mojo
18:23 DaTa joined #mojo
18:48 rem_lex| joined #mojo
18:48 xaka joined #mojo
19:28 tempire I'm sold on tweetbot.  While I like the twitter client, some tweets seem to be hidden for no apparent reason.
20:01 batman_ joined #mojo
20:08 jamesw joined #mojo
20:08 jamesw joined #mojo
20:17 perlite_ joined #mojo
20:30 jamesw joined #mojo
20:40 baton8 joined #mojo
21:10 dvinciguerra joined #mojo
21:24 xaka joined #mojo
21:47 lukep joined #mojo
22:04 gryphon joined #mojo
22:12 asarch joined #mojo
23:07 crab joined #mojo
23:10 asarch joined #mojo
23:31 gryphon_ joined #mojo
23:32 xaka joined #mojo

| Channels | #mojo index | Today | | Search | Google Search | Plain-Text | summary