The export system has been completely rewritten to be less monolithic and

easier to understand. It's also got a fully rewritten test suite (145 and
counting). It uses Path::Class for much of its work, which is now a requirement
for wG.
This commit is contained in:
Chris Nehren 2008-04-16 22:16:11 +00:00
parent 8500c4d506
commit 684ce5a7ca
6 changed files with 1710 additions and 340 deletions

View file

@ -71,9 +71,9 @@ sub execute {
my $self = shift;
my $versionTag = shift;
foreach my $asset (@{$versionTag->getAssets}) {
my $status = $asset->exportAsHtml();
my ($returnCode, $status) = $asset->exportAsHtml( { quiet => 1, userId => 1, indexFileName => 'index.html', depth => 99, } );
return $self->ERROR unless ($status eq "success");
$status = $asset->getContainer->exportAsHtml();
($returnCode, $status) = $asset->getContainer->exportAsHtml( { quiet => 1, userId => 1, indexFileName => 'index.html', depth => 99, } );
return $self->ERROR unless ($status eq "success");
}
return $self->COMPLETE;