WebGUI::Session::Http should go away (#11647)
Move logic out of WebGUI::Session::HTTP and into WebGUI::Session::Response / ::Request; deprecate more functions; change references in core to use $session->response instead; fix tests that broke because of the change but not one that merely generate the deprecated warning because I want to know that the proxying of depricated methods is working. These can be changed later.
This commit is contained in:
parent
72bac90f93
commit
57d2dbed56
76 changed files with 581 additions and 358 deletions
|
|
@ -356,9 +356,9 @@ sub www_deployPackage {
|
|||
return undef;
|
||||
};
|
||||
if ($session->form->param("proceed") eq "manageAssets") {
|
||||
$session->http->setRedirect($self->getManagerUrl);
|
||||
$session->response->setRedirect($self->getManagerUrl);
|
||||
} else {
|
||||
$session->http->setRedirect($self->getUrl());
|
||||
$session->response->setRedirect($self->getUrl());
|
||||
}
|
||||
return undef;
|
||||
}
|
||||
|
|
@ -376,7 +376,7 @@ sub www_exportPackage {
|
|||
return $self->session->privilege->insufficient() unless ($self->canEdit);
|
||||
my $storage = $self->exportPackage;
|
||||
my $filename = $storage->getFiles->[0];
|
||||
$self->session->http->setRedirect($storage->getUrl($storage->getFiles->[0]));
|
||||
$self->session->response->setRedirect($storage->getUrl($storage->getFiles->[0]));
|
||||
return "redirect";
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue