Merge branch 'master' of git@github.com:plainblack/webgui

This commit is contained in:
daviddelikat 2009-11-15 22:03:40 -06:00
commit 4278058c3c
30 changed files with 1549 additions and 58 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -32,7 +32,8 @@ my $session = start(); # this line required
fixPackageFlagOnOlder( $session );
addEMSSubmissionTables($session);
configEMSActivities($session);
removeOldWebGUICSS($session);
addUSPSInternationalShippingDriver( $session );
# upgrade functions go here
@ -48,6 +49,19 @@ finish($session); # this line required
# print "DONE!\n" unless $quiet;
#}
#----------------------------------------------------------------------------
# Describe what our function does
sub removeOldWebGUICSS {
my $session = shift;
print "\tRemoving the old webgui.css file... " unless $quiet;
my $snippet = WebGUI::Asset->newByDynamicClass($session, 'PcRRPhh-0KfvLLNIPdxJTw');
if ($snippet) {
$snippet->purge;
}
# and here's our code
print "DONE!\n" unless $quiet;
}
#----------------------------------------------------------------------------
# Describe what our function does
sub configEMSActivities {
@ -160,6 +174,14 @@ ENDSQL
}
sub addUSPSInternationalShippingDriver {
my $session = shift;
print "\tAdd the USPS International shipping driver... " unless $quiet;
# and here's our code
$session->config->addToArray('shippingDrivers', 'WebGUI::Shop::ShipDriver::USPSInternational');
print "DONE!\n" unless $quiet;
}
sub fixPackageFlagOnOlder {
my $session = shift;
print "\tFixing isPackage flag on folders and isDefault on templates from 7.6.35 to 7.7.17 upgrade. If default templates have been deleted from your site, you may see warnings about not being able to find assets. You may safely ignore those warnings. This entire process may take a while.. " unless $quiet;