Skip Menu |

This queue is for tickets about the Mason CPAN distribution.

Report information
The Basics
Id: 66584
Status: resolved
Priority: 0/
Queue: Mason

People
Owner: Nobody in particular
Requestors: jozef.mojzis [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 2.05
Fixed in: (no value)



After a change of the default extensions .m -> .mc, the blog demo not working "out of the box".
On Sun Mar 13 09:00:02 2011, jomo wrote: Show quoted text
> After a change of the default extensions .m -> .mc, the blog demo not > working "out of the > box".
I did attempt to update this for the new extensions. Are you using hte latest version? Can you tell me specifically what's not working?
Subject: errors in eg/blog ...
From: jozef.mojzis [...] gmail.com
Dne Ne 13.bře.2011 12:02:08, JSWARTZ napsal(a): Show quoted text
> On Sun Mar 13 09:00:02 2011, jomo wrote:
> > After a change of the default extensions .m -> .mc, the blog demo not > > working "out of the > > box".
> > I did attempt to update this for the new extensions. Are you using hte > latest version? Can you tell me specifically what's not working?
Simply in the eg/blog all components has the old extenstions .m and .pm. They needed renamed to '.mc' resp. '.mp', or add top_level_extensions into app.psgi. Here is another small error in article/publish.pm - $.cmeta->args shoud be $.args. that's all - patch attached. jm
Subject: diff.txt
diff -rup blog_orig/app.psgi blog/app.psgi --- blog_orig/app.psgi 2011-03-07 05:30:53.000000000 +0100 +++ blog/app.psgi 2011-03-14 01:02:44.000000000 +0100 @@ -15,6 +15,8 @@ my $interp = Mason->new( comp_root => "$cwd/comps", data_dir => "$cwd/data", plugins => \@plugins, + top_level_extensions => [qw(.m .pm)], + pure_perl_extensions => ['.pm'], ); # Load model diff -rup blog_orig/comps/article/publish.pm blog/comps/article/publish.pm --- blog_orig/comps/article/publish.pm 2011-03-07 05:30:53.000000000 +0100 +++ blog/comps/article/publish.pm 2011-03-14 01:09:07.000000000 +0100 @@ -5,7 +5,7 @@ method handle () { my $session = $m->req->session; if ( !$.content || !$.title ) { $session->{message} = "Content and title required."; - $session->{form_data} = $.cmeta->args; + $session->{form_data} = $.args; $m->redirect('/new_article'); } my $article =
Oh, silly me. Thanks - fixed in next release. On Sun Mar 13 20:38:12 2011, jomo wrote: Show quoted text
> Dne Ne 13.bře.2011 12:02:08, JSWARTZ napsal(a):
> > On Sun Mar 13 09:00:02 2011, jomo wrote:
> > > After a change of the default extensions .m -> .mc, the blog demo
> not
> > > working "out of the > > > box".
> > > > I did attempt to update this for the new extensions. Are you using
> hte
> > latest version? Can you tell me specifically what's not working?
> > Simply in the eg/blog all components has the old extenstions .m and > .pm. > They needed renamed to '.mc' resp. '.mp', or > add top_level_extensions into app.psgi. > > Here is another small error in article/publish.pm - $.cmeta->args > shoud be $.args. > > that's all - patch attached. > jm >