[jifty-devel] Re: Order of Component Roots in Jifty

dbaster at bigpond.net.au dbaster at bigpond.net.au
Wed Dec 6 05:21:42 EST 2006


Jesse,
Thanks for getting back to me.  It appears that you are very busy especially with Template::Declare.  

My "tests" of CompRoot Order involved just adding a debug message to Handler.pm.
At the top of Handler.pm:

use Data::Dumper;
$Data::Dumper::Indent =1;

At the end of sub mason_config, before the return:

Jifty->log->debug( "Mason config is " . Data::Dumper->Dump([%config]) );

I then watched the logs as I started up a nifty jifty app with and without my changes.  

With patch:    Order that is desired.
( various lines deleted )
$VAR9 = 'comp_root';
$VAR10 = [
  [
    'application',
    '/home/d/Jiffy/jiffy/wifty/trunk/share/web/templates'
  ],
  [
    'Jifty::Plugin::Login-S112388',
    '/usr/local/lib/perl/5.8.8/auto/Jifty/Plugin/Login/web/templates'
  ],
  [
    'jifty',
    '/usr/local/share/perl/5.8.8/auto/Jifty/web/templates'
  ]
];

Without patch       Wrong order.
( various lines deleted)
$VAR9 = 'comp_root';
$VAR10 = [
  [
    'application',
    '/home/d/Jiffy/jiffy/wifty/trunk/share/web/templates'
  ],
  [
    'jifty',
    '/usr/local/share/perl/5.8.8/auto/Jifty/web/templates'
  ],
  [
    'Jifty::Plugin::Login-S111704',
    '/usr/local/lib/perl/5.8.8/auto/Jifty/Plugin/Login/web/templates'
  ]
];

Can you give this a try.  PS:  latest jifty from svn.

Daryl




More information about the jifty-devel mailing list