[prev in list] [next in list] [prev in thread] [next in thread] 

List:       bricolage-bugs
Subject:    [Bricolage-Bugs] [Bug 735] New: Can't fine $template when using TemplateToolkit Burner
From:       bugzilla-daemon () thepirtgroup ! com
Date:       2004-07-15 10:14:34
Message-ID: 200407151014.i6FAEYf68931 () bricolage-bugzilla ! about ! com
[Download RAW message or body]

           Summary: Can't fine $template when using TemplateToolkit Burner
           Product: Bricolage
           Version: 1.8.x - Current Stable Release
          Platform: Mozilla
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Template Profile
        AssignedTo: david@kineticode.com
        ReportedBy: tmelhuish@webinsightsinc.com


I’m trying to get the TemplateToolkit working in Bricolage but receiving the
following error:

<!-- DEBUGGING INFORMATION.

Error: Error executing ''

  Output Channel: Web
  Category:       /Test
  Element:        Story_TT
  Fault Class:    Bric::Util::Fault::Exception::Burner
  Description:    Burner exception
  Timestamp:      2004-07-15 06:42:29
  Package:        Bric::Util::Burner::TemplateToolkit
  Filename:       /usr/lib/perl5/site_perl/5.8.0/Bric/Util/Burner/TemplateToolkit.pm
  Line:           271
  Payload:        file error - : not found

STACK:

Trace begun at
/usr/lib/perl5/site_perl/5.8.0/Bric/Util/Burner/TemplateToolkit.pm line 271
Bric::Util::Burner::TemplateToolkit::burn_one('Bric::Util::Burner::TemplateToolkit=HASH(0xe0b74e4)',
'Bric::Biz::Asset::Business::Story=HASH(0xe0e132c)',
'Bric::Biz::OutputChannel=HASH(0xe0e77a8)',
'Bric::Biz::Category=HASH(0xe0e129c)', 'Bric::Biz::AssetType=HASH(0xe0e77fc)')
called at /usr/lib/perl5/site_perl/5.8.0/Bric/Util/Burner.pm line 1237
Bric::Util::Burner::burn_one('Bric::Util::Burner=HASH(0xe0e5734)',
'Bric::Biz::Asset::Business::Story=HASH(0xe0e132c)',
'Bric::Biz::OutputChannel=HASH(0xe0e77a8)',
'Bric::Biz::Category=HASH(0xe0e129c)') called at
/usr/lib/perl5/site_perl/5.8.0/Bric/Util/Burner.pm line 826
eval {...} at /usr/lib/perl5/site_perl/5.8.0/Bric/Util/Burner.pm line 779
Bric::Util::Burner::preview('Bric::Util::Burner=HASH(0xe0e5734)',
'Bric::Biz::Asset::Business::Story=HASH(0xe0e132c)', 'story', 1025, undef)
called at /usr/lib/perl5/site_perl/5.8.0/Bric/App/Callback/Publish.pm line 83
Bric::App::Callback::Publish::preview('Bric::App::Callback::Publish=HASH(0xe0df9b0)')
called at /usr/local/bricolage/comp/workflow/profile/preview/dhandler line 36
HTML::Mason::Commands::__ANON__('checkout', 1, 'checkout', 1) called at
/usr/lib/perl5/site_perl/5.8.0/HTML/Mason/Component.pm line 134
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0xa854c3c)',
'checkout', 1, 'checkout', 1) called at
/usr/lib/perl5/site_perl/5.8.0/HTML/Mason/Request.pm line 1074
eval {...} at /usr/lib/perl5/site_perl/5.8.0/HTML/Mason/Request.pm line 1068
HTML::Mason::Request::comp(undef, undef, 'checkout', 1, 'checkout', 1) called at
/usr/lib/perl5/site_perl/5.8.0/HTML/Mason/Request.pm line 760
HTML::Mason::Request::call_next('HTML::Mason::Request::ApacheHandler=HASH(0xe0b6bf8)',
'checkout', 1) called at /usr/local/bricolage/comp/autohandler line 7
HTML::Mason::Commands::__ANON__('checkout', 1) called at
/usr/lib/perl5/site_perl/5.8.0/HTML/Mason/Component.pm line 134
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0xa4dc9dc)',
'checkout', 1) called at /usr/lib/perl5/site_perl/5.8.0/HTML/Mason/Request.pm
line 1069
eval {...} at /usr/lib/perl5/site_perl/5.8.0/HTML/Mason/Request.pm line 1068
HTML::Mason::Request::comp(undef, undef, undef, 'checkout', 1) called at
/usr/lib/perl5/site_perl/5.8.0/HTML/Mason/Request.pm line 338
eval {...} at /usr/lib/perl5/site_perl/5.8.0/HTML/Mason/Request.pm line 338
eval {...} at /usr/lib/perl5/site_perl/5.8.0/HTML/Mason/Request.pm line 297
HTML::Mason::Request::exec('HTML::Mason::Request::ApacheHandler=HASH(0xe0b6bf8)')
called at /usr/lib/perl5/site_perl/5.8.0/HTML/Mason/ApacheHandler.pm line 134
eval {...} at /usr/lib/perl5/site_perl/5.8.0/HTML/Mason/ApacheHandler.pm line 134
HTML::Mason::Request::ApacheHandler::exec('HTML::Mason::Request::ApacheHandler=HASH(0xe0b6bf8)')
called at /usr/lib/perl5/site_perl/5.8.0/HTML/Mason/ApacheHandler.pm line 792
HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0xa4a0698)',
'Apache=SCALAR(0xe0b2d38)') called at
/usr/lib/perl5/site_perl/5.8.0/Bric/App/Handler.pm line 308
eval {...} at /usr/lib/perl5/site_perl/5.8.0/Bric/App/Handler.pm line 298
Bric::App::Handler::handler('Apache=SCALAR(0xe0b2d38)') called at /dev/null line 0
eval {...} at /dev/null line 0

END DEBUGGING INFORMATION -->


I have the following  “story_tt.tt” file created and Bricolage stored it in the
/usr/local/bricolage/data/burn/sandbox/user_1025/oc_1/Test directory 

++++++++++++++++++++++++++++++++

  my $string = q(
    Dear [% recipient %],
     Congratulations!  You have won [% amount %] dollar[% plural %]!
  );
  
 
  my $template = new Template;
  # I tried this also with no difference
  #  my $template = $burner->new_template(autofill => 0);

  my %vars = (recipient => (int(rand 2) ? 'Mary' : 'John'),
              amount    => int(rand 10) - 5);
  $vars{plural} = $vars{amount} == 1 ? '' : 's';
  
  $template->process(\$string, \%vars);

++++++++++++++++++++++++++++++++++

I have a HTML::Template example working fine. In the template above I prefer to
separate the HTML from the perl script, so the $string would be a $file instead.
In HTML::Template this is the xxx.tmpl file. How is this managed in a similar
fashion using the TemplateToolkit? Can this TemplateToolkit HTML code be
embedded in a paragraph?   

Thanks in advance for your help.

http://bugzilla.bricolage.cc/show_bug.cgi?id=735


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
Bricolage-Bugs mailing list
Bricolage-Bugs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bricolage-bugs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic