Refactor out the JSON collateral code from FilePump/Bundle.pm to make an aspect

that can be used by assets, operations and any other modules in WebGUI.
This commit is contained in:
Colin Kuskie 2009-08-26 15:42:18 +00:00
parent 7fcb339605
commit 18a52b9aa2
6 changed files with 718 additions and 2 deletions

View file

@ -2495,8 +2495,13 @@ sub update {
}
# set the property
if ($propertyDefinition->{serialize}) {
$setPairs{$property} = JSON->new->canonical->encode($value);
}
else {
$setPairs{$property} = $value;
}
$self->{_properties}{$property} = $value;
$setPairs{$property} = $value;
}
# if there's anything to update, then do so