[Catalyst] Re: InstantCrud Example

Zbigniew Lukasiak zzbbyy at gmail.com
Sun Feb 12 18:58:15 CET 2006


Thanks.  I knew that substituting in the generated script is brain
dead approach, but now we have no elegant solution for generating a
modified version of the main application script.

Version 0.0.7 is on it's way to CPAN.

-- Zbyszek

On 2/12/06, Lars Balker Rasmussen <lars at balker.dk> wrote:
> On Sun, Feb 12, 2006 at 12:15:50AM +0100, Lars Balker Rasmussen wrote:
> > Zbigniew Lukasiak <zzbbyy at gmail.com> wrote:
> > > OK - so that was from Catalyst::Plugin::FormValidator.  I've added it
> > > as prerequisite and released 0.0.6 to CPAN.
> > > Thank you for pointing me at that issue.
> >
> > > >On 2/9/06, ryan lauterbach <ryan at radianit.com> wrote:
> > > >>just installed Catalyst::Example::InstantCRUD and get this error:
> > > >>
> > > >>Caught exception in mycrud::Controller::Greetings->list "Can't
> > > >>locate object method "form" via package "mycrud" at
> > > >>/usr/local/share/perl/5.8.7/Catalyst/Example/Controller/InstantCRUD.pm
> > > >>line 181."
> >
> > I'm seeing the same error with C::P::FV installed, so that can't be it.
>
> Manually adding FormValidator and DefaultEnd to the use arguments in
> Myapp.pm fixed it.
>
> The problem appears to be that catalyst.pl now makes a MyApp.pm with:
>
>         use Catalyst qw/-Debug ConfigLoader Static::Simple/;
>
> and instantcrud.pl does
>
>     $appfilecont =~
>        s{use Catalyst qw/-Debug Static::Simple/}
>         {use Catalyst qw/-Debug Static::Simple FormValidator DefaultEnd/};
>
> I suggest changing that to
>
>        s{use Catalyst qw/(.*?)/}
>         {use Catalyst qw/$1 FormValidator DefaultEnd/};
>
> as well as adding C::P::DefaultEnd to the prereqs.
> --
> Lars Balker Rasmussen                                        Consult::Perl
>
> _______________________________________________
> Catalyst mailing list
> Catalyst at lists.rawmode.org
> http://lists.rawmode.org/mailman/listinfo/catalyst
>


More information about the Catalyst mailing list