Requested docs/scripts added for 11777

This commit is contained in:
Paul Driver 2009-07-13 22:12:03 +00:00
parent 0a3329d7be
commit 2adb08c79c
8 changed files with 407 additions and 974 deletions

View file

@ -3,6 +3,8 @@
- fixed #10626: Carriage returns stripped from Wiki comments
- fixed #10572: CDN / CloudFront breaks 7.7.11 upgrade
- fixed #10630: If macro says that 0 is true
- PayDriver::PayPal replaced. The old one fought the Shop API and
didn't work.
7.7.14
- fixed #10606: shelf selector

View file

@ -7,6 +7,12 @@ upgrading from one version to the next, or even between multiple
versions. Be sure to heed the warnings contained herein as they will
save you many hours of grief.
7.7.15
--------------------------------------------------------------------
* PayDriver::PayPal has been replaced with an entirely different
module. If you had the old one working, the new one very likely
will not work (the old one did some very un-Shop things, which
is why it was replaced). Please test the new one with your setup.
7.7.13
--------------------------------------------------------------------

View file

@ -33,6 +33,7 @@ my $session = start(); # this line required
# upgrade functions go here
replaceUsageOfOldTemplates($session);
replacePayPalDriver($session);
finish($session); # this line required
@ -46,6 +47,24 @@ finish($session); # this line required
# print "DONE!\n" unless $quiet;
#}
sub replacePayPalDriver {
my $session = shift;
my $config = $session->config;
my $prop = 'paymentDrivers';
my $old = 'WebGUI::Shop::PayDriver::PayPal::PayPalStd';
my $drivers = $config->get($prop);
foreach my $driver (@$drivers) {
# We'll do nothing if the old paypal driver isn't used
next unless $driver eq $old;
print "\tUpdating config to use new PayPal driver..." unless $quiet;
$config->deleteFromArray($prop, $old);
$config->addToArray($prop, 'WebGUI::Shop::PayDriver::PayPal');
print "DONE!\n" unless $quiet;
last;
}
}
#----------------------------------------------------------------------------
sub replaceUsageOfOldTemplates {
my $session = shift;