Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Catalyst: Dev

View::TT config ignores EVAL_PERL

 

 

Catalyst dev RSS feed   Index | Next | Previous | View Threaded


shtil at comcast

Aug 7, 2008, 10:07 AM

Post #1 of 5 (1005 views)
Permalink
View::TT config ignores EVAL_PERL

When I set it like:

__PACKAGE__->config('
'View::TT' => {EVAL_PERL => 1});

EVAL_PERL seems to be ignored.
Is this a desired behavior?


--
Sincerely

Yuri Shtil



_______________________________________________
Catalyst-dev mailing list
Catalyst-dev[at]lists.scsys.co.uk
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst-dev


dbix-class at trout

Aug 7, 2008, 6:55 PM

Post #2 of 5 (936 views)
Permalink
Re: View::TT config ignores EVAL_PERL [In reply to]

On Thu, Aug 07, 2008 at 05:07:06PM +0000, shtil[at]comcast.net wrote:
> When I set it like:

Is that in MyApp.pm ? If not you just want ->config(EVAL_PERL => 1);

> __PACKAGE__->config('
> 'View::TT' => {EVAL_PERL => 1});
>
> EVAL_PERL seems to be ignored.

The entire config is passed through to Template. Nothing's ignored.

If you can't get this working please send:

your View::TT subclass

your MyApp.pm

your config file

your startup debug log

--
Matt S Trout Need help with your Catalyst or DBIx::Class project?
Technical Director http://www.shadowcat.co.uk/catalyst/
Shadowcat Systems Ltd. Want a managed development or deployment platform?
http://chainsawblues.vox.com/ http://www.shadowcat.co.uk/servers/

_______________________________________________
Catalyst-dev mailing list
Catalyst-dev[at]lists.scsys.co.uk
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst-dev


shtil at comcast

Aug 27, 2008, 8:55 AM

Post #3 of 5 (869 views)
Permalink
Re: View::TT config ignores EVAL_PERL [In reply to]

-------------- Original message ----------------------
From: Matt S Trout <dbix-class[at]trout.me.uk>
> On Thu, Aug 07, 2008 at 05:07:06PM +0000, shtil[at]comcast.net wrote:
> > When I set it like:
>
> Is that in MyApp.pm ? If not you just want ->config(EVAL_PERL => 1);
>
> > __PACKAGE__->config('
> > 'View::TT' => {EVAL_PERL => 1});
> >
> > EVAL_PERL seems to be ignored.
>
> The entire config is passed through to Template. Nothing's ignored.
>
> If you can't get this working please send:
>
> your View::TT subclass
>
> your MyApp.pm
>
> your config file
>
> your startup debug log
>
> --
> Matt S Trout Need help with your Catalyst or DBIx::Class project?
> Technical Director http://www.shadowcat.co.uk/catalyst/
> Shadowcat Systems Ltd. Want a managed development or deployment platform?
> http://chainsawblues.vox.com/ http://www.shadowcat.co.uk/servers/
>
> _______________________________________________
> Catalyst-dev mailing list
> Catalyst-dev[at]lists.scsys.co.uk
> http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst-dev

I finally got around to this:

my View::TT subclass attached as Template.pm
MyApp.pm attached as Maelstrom.pm
I have no config file.
The debug log attached as debug.log
Attachments: debug.log (4.30 KB)
  Maelstrom.pm (0.85 KB)
  Template.pm (0.55 KB)


shtil at comcast

Aug 27, 2008, 8:55 AM

Post #4 of 5 (866 views)
Permalink
Re: View::TT config ignores EVAL_PERL [In reply to]

-------------- Original message ----------------------
From: Matt S Trout <dbix-class[at]trout.me.uk>
> On Thu, Aug 07, 2008 at 05:07:06PM +0000, shtil[at]comcast.net wrote:
> > When I set it like:
>
> Is that in MyApp.pm ? If not you just want ->config(EVAL_PERL => 1);
>
> > __PACKAGE__->config('
> > 'View::TT' => {EVAL_PERL => 1});
> >
> > EVAL_PERL seems to be ignored.
>
> The entire config is passed through to Template. Nothing's ignored.
>
> If you can't get this working please send:
>
> your View::TT subclass
>
> your MyApp.pm
>
> your config file
>
> your startup debug log
>
> --
> Matt S Trout Need help with your Catalyst or DBIx::Class project?
> Technical Director http://www.shadowcat.co.uk/catalyst/
> Shadowcat Systems Ltd. Want a managed development or deployment platform?
> http://chainsawblues.vox.com/ http://www.shadowcat.co.uk/servers/
>
> _______________________________________________
> Catalyst-dev mailing list
> Catalyst-dev[at]lists.scsys.co.uk
> http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst-dev

I finally got around to this:

my View::TT subclass attached as Template.pm
MyApp.pm attached as Maelstrom.pm
I have no config file.
The debug log attached as debug.log
Attachments: debug.log (4.30 KB)
  Maelstrom.pm (0.85 KB)
  Template.pm (0.55 KB)


dbix-class at trout

Sep 3, 2008, 3:00 AM

Post #5 of 5 (833 views)
Permalink
Re: View::TT config ignores EVAL_PERL [In reply to]

On Wed, Aug 27, 2008 at 03:55:23PM +0000, shtil[at]comcast.net wrote:
> > Is that in MyApp.pm ? If not you just want ->config(EVAL_PERL => 1);
> >
> > > __PACKAGE__->config('
> > > 'View::TT' => {EVAL_PERL => 1});
> > >
> > > EVAL_PERL seems to be ignored.
>
> I finally got around to this:
>
> my View::TT subclass attached as Template.pm

the 'View::TT' config key configures MyApp::View::TT.

Your view is called MyApp::View::Template.

Please rename one.

--
Matt S Trout Need help with your Catalyst or DBIx::Class project?
Technical Director http://www.shadowcat.co.uk/catalyst/
Shadowcat Systems Ltd. Want a managed development or deployment platform?
http://chainsawblues.vox.com/ http://www.shadowcat.co.uk/servers/

_______________________________________________
Catalyst-dev mailing list
Catalyst-dev[at]lists.scsys.co.uk
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst-dev

Catalyst dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.