Skip Menu |
 

This queue is for tickets about the Object-InsideOut CPAN distribution.

Report information
The Basics
Id: 26477
Status: resolved
Priority: 0/
Queue: Object-InsideOut

People
Owner: Nobody in particular
Requestors: Brad.Eisenberg [...] morganstanley.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



CC: "wise-infra" <wise-infra [...] morganstanley.com>
Subject: Does OIO serialize deeply?
Date: Wed, 18 Apr 2007 11:44:14 -0400
To: <bug-Object-InsideOut [...] rt.cpan.org>
From: "Eisenberg, Brad \(IT\)" <Brad.Eisenberg [...] morganstanley.com>
Download (untitled) / with headers
text/plain 1.6k
Mr. Hedden, I am calling dump(1) on an OIO object, and it looks like an attribute which is a list of OIO object references is not dumped in a way that they can later be "pump()"ed into real objects. [ 'Omega::ETL::ConfDb::Job', { 'Omega::ETL::ConfDb::Job' => { 'get_frequency' => 'd', ... 'get_source' => [ bless( do{\(my $o = 2)}, 'Omega::ETL::ConfDb::Source' ), bless( do{\(my $o = 3)}, 'Omega::ETL::ConfDb::Source' ), bless( do{\(my $o = 4)}, 'Omega::ETL::ConfDb::Source' ), bless( do{\(my $o = 5)}, 'Omega::ETL::ConfDb::Source' ) ], 'get_source_system' => 'unknown', ... } } ] If that is correct, are there plans to enhance dump() to serialize deeply, recognizing OIO objects along the way? I originally tried this with OIO 3.08, then I downloaded OIO 3.14 and ran it again, with the same results. Thank you, Brad Eisenberg Morgan Stanley | Technology 1 New York Plaza, 8th Floor | New York, NY 10004 Phone: +1 212 276-1271 Brad.Eisenberg@morganstanley.com -------------------------------------------------------- NOTICE: If received in error, please destroy and notify sender. Sender does not intend to waive confidentiality or privilege. Use of this email is prohibited when received in error.
From: JDHEDDEN [...] cpan.org
Download (untitled) / with headers
text/plain 687b
Show quoted text
> I am calling dump(1) on an OIO object, and it looks like an > attribute which is a list of OIO object references is not dumped in a > way that they can later be "pump()"ed into real objects.
Show quoted text
> If that is correct
It is correct. Show quoted text
> are there plans to enhance dump() to serialize > deeply, recognizing OIO objects along the way?
No. However, it can be done using :Dumper and :Pumper subroutines. Matters of this type are more appropriately dealt with on the forum as other may benefit from the discussion: http://www.cpanforum.com/dist/Object-InsideOut I am closing this ticket and will post a reply there along with an example of how this might be handled. Thanks for using OIO.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.