more conversion to the new streaming/chunking/bucketing system

This commit is contained in:
JT Smith 2006-01-30 22:15:27 +00:00
parent 46fa7e78e7
commit 6c4ae02f34
15 changed files with 219 additions and 43 deletions

View file

@ -257,6 +257,23 @@ sub indexContent {
}
#-------------------------------------------------------------------
=head2 prepareView ( )
See WebGUI::Asset::prepareView() for details.
=cut
sub prepareView {
my $self = shift;
$self->SUPER::prepareView();
my $template = WebGUI::Asset::Template->new($self->session, $self->get("templateId"));
$template->prepare;
$self->{_viewTemplate} = $template;
}
#-------------------------------------------------------------------
sub processPropertiesFromFormPost {
my $self = shift;
@ -331,7 +348,7 @@ sub view {
}
randomizeArray(\@answers) if ($self->get("randomizeAnswers"));
$var{answer_loop} = \@answers;
return $self->processTemplate(\%var,$self->get("templateId"));
return $self->processTemplate(\%var,undef,$self->{_viewTemplate});
}
#-------------------------------------------------------------------