--- Webpacus/lib/Webpacus.pm 2005/12/03 01:56:37 205 +++ Webpacus/lib/Webpacus.pm 2006/01/07 17:34:16 348 @@ -10,14 +10,16 @@ # Static::Simple: will serve static files from the applications root directory # use Catalyst qw/-Debug - Static::Simple Prototype Config::YAML FillInForm + SubRequest + Static::Simple + StackTrace /; # FormValidator -our $VERSION = '0.13-dev'; +our $VERSION = '0.29-dev'; # # Configure the application @@ -66,13 +68,19 @@ $c->stash->{webpacus_version} = $VERSION; - # Forward to View unless response body is already defined - $c->forward('View::TT') unless $c->response->body; + if ($c->response->body) { + $c->log->debug("at end body exists, we won't touch it!"); + } else { + $c->fillform( $c->req->params ); + + # Forward to View unless response body is already defined + $c->forward('View::TT'); - $c->fillform; # defaults to $c->req->parameters + $c->response->{body} =~ s#\Qnew Ajax.Autocompleter(\E#new WebPAC.Suggest(#gs; + $c->response->{body} =~ s#\Qnew Ajax.Updater(\E#new WebPAC.Updater(#gs; -# $c->response->{body} =~ s#\Qnew Ajax.Autocompleter(\E#new Ajax.Suggest(#gs; -# $c->log->debug( $c->response->body ); +# $c->log->debug( $c->response->body ); + } }