convert feature collateral to JSON

This commit is contained in:
Colin Kuskie 2008-05-05 17:50:26 +00:00
parent 52d29d90e4
commit d7c6507c8b
3 changed files with 69 additions and 69 deletions

View file

@ -148,10 +148,22 @@ $products->setCollateral('Product_specification', 'Product_specificationId', {
units => 'Hertz',
});
$products->setCollateral('Product_specification', 'Product_specificationId', {
name => 'hue',
value => '75',
units => 'lumens',
my $propertiesf = {
className => 'WebGUI::Asset::Wobject::Product',
url => 'feature_Product',
price => 3.33,
title => 'feature Product',
description => 'feature Product',
};
my $productf = $root->addChild($propertiesf);
$productf->setCollateral('Product_feature', 'Product_featureId', {
feature => 'leather interior',
});
$productf->setCollateral('Product_feature', 'Product_featureId', {
feature => '25% less code',
});
$tag->commit;