Re: Hacking the object index

[prev] [thread] [next] [Date index for 2004/09/16]

From: William McKee
Subject: Re: Hacking the object index
Date: 15:26 on 16 Sep 2004
On Thu, Sep 16, 2004 at 10:15:50AM -0400, Perrin Harkins wrote:
> On Wed, 2004-09-15 at 17:32, William McKee wrote:
> > Is there a way to dump the contents of the %Live_Objects index to see
> > what I'm missing? For now I've hacked in support for this.
> 
> Sounds like you've answered your own question.  I don't see this going
> into the distribution, but it's easy to add a Data::Dumper call for it.

Yes, I did for the time being. However, my solution would require
tweaking the CDBI on every system and for each new release. That's why I
was asking if there were was a way to access that w/o my hack. I
couldn't find a means of directly accessing the index using either of
the following:

    Dumper(\%Class::DBI::Live_Objects)
    Dumper(\%MyDBI::Live_Objects)

Both returned empty lists.


> > Also, is there any way to get CDBI to give me the original class of a
> > deleted object? That would be *really* nice in some situations.
> 
> I suspect you could add this as a property of deleted objects pretty
> easily.

Of course, why didn't I think of that!


Thanks,
William

        -- 
        Knowmad Services Inc.
http://www.knowmad.com

Hacking the object index
William McKee 21:32 on 15 Sep 2004

Re: Hacking the object index
Perrin Harkins 14:15 on 16 Sep 2004

Re: Hacking the object index
William McKee 15:26 on 16 Sep 2004

Re: Hacking the object index
Perrin Harkins 15:53 on 16 Sep 2004

Generated at 11:34 on 01 Dec 2004 by mariachi v0.52