254 |
my $self = shift; |
my $self = shift; |
255 |
|
|
256 |
eval ("use Data::UUID;"); |
eval ("use Data::UUID;"); |
257 |
|
return if $@; |
258 |
my $ug = Data::UUID->new(); |
my $ug = Data::UUID->new(); |
259 |
my $guid = $ug->create_str(); |
my $guid = $ug->create_str(); |
260 |
|
|
469 |
return $self->id($obj) |
return $self->id($obj) |
470 |
if $self->id($obj); |
if $self->id($obj); |
471 |
|
|
472 |
# insert global unique identifier in object to persist across re-deploys |
# insert global unique identifier in object to persist across re-deploys |
473 |
$obj->{guid} = $self->make_guid(); |
$obj->{guid} = $self->make_guid(); |
|
|
|
|
# debug |
|
|
use Data::Dumper; |
|
|
print Dumper($obj); |
|
474 |
|
|
475 |
$saving->insert($obj); |
$saving->insert($obj); |
476 |
|
|