Update Shop::Ship to use Moose instead of C::IO. Update tests, and core code. Provide a shim for the old syntax.

This commit is contained in:
Colin Kuskie 2010-06-24 13:41:07 -07:00
parent 9678c3d8a7
commit 6ac0aa936c
4 changed files with 30 additions and 51 deletions

View file

@ -369,7 +369,7 @@ Returns the WebGUI::Shop::ShipDriver object that is attached to this cart for sh
sub getShipper {
my $self = shift;
return WebGUI::Shop::Ship->new($self->session)->getShipper($self->get("shipperId"));
return WebGUI::Shop::Ship->new(session => $self->session)->getShipper($self->get("shipperId"));
}
#-------------------------------------------------------------------
@ -845,7 +845,7 @@ sub www_view {
else {
$var{hasShippingAddress} = 1;
$var{shippingAddress} = $address->getHtmlFormatted;
my $ship = WebGUI::Shop::Ship->new($self->session);
my $ship = WebGUI::Shop::Ship->new(session => $self->session);
my $options = $ship->getOptions($self);
my $numberOfOptions = scalar keys %{ $options };
if ($numberOfOptions < 1) {