Translate all Product variables to use underscores instead of dots.

Update i18n and Help and the Product Template.
Remove the Benefits Showcase, Left Column Collateral and Three Columns Product templates.
This commit is contained in:
Colin Kuskie 2008-05-24 22:15:15 +00:00
parent 5edb13924a
commit 3428c3947d
6 changed files with 230 additions and 205 deletions

View file

@ -44,6 +44,13 @@ save you many hours of grief.
Wobjects, Templates and Snippets, the Product macro has been replaced
with the AssetProxy macro.
* The Product template variables now use the new WebGUI standard of not
using dots in their names. For example, brochure.icon is now brochure_icon
* All Product Templates that shipped with earlier versions of WebGUI have
been deleted, except for the Default Product Macro. During the upgrade,
all products have been updated to use the Default Product Macro.
7.5.9
--------------------------------------------------------------------

View file

@ -52,6 +52,7 @@ upgradeEMS($session);
migrateOldProduct($session);
mergeProductsWithCommerce($session);
updateUsersOfProductMacro($session);
deleteOldProductTemplates($session);
addCaptchaToDataForm( $session );
addArchiveEnabledToCollaboration( $session );
addShelf( $session );
@ -1079,6 +1080,19 @@ sub updateUsersOfProductMacro {
}
#-------------------------------------------------
sub deleteOldProductTemplates {
my $session = shift;
print "\tDeleting all Product Templates, except for the Default Product Template.\n" unless ($quiet);
$session->db->write("update Product set templateId='PBtmpl0000000000000056.tmpl'");
foreach my $templateId (qw/PBtmpl0000000000000095 PBtmpl0000000000000110 PBtmpl0000000000000119/) {
my $template = WebGUI::Asset->newByDynamicClass($session, $templateId);
$template->purge;
}
return 1;
}
#-------------------------------------------------
sub insertCommercePayDriverTable {
my $session = shift;