Re: Storing Objects with Apache::Session

2003-10-24 Thread Perrin Harkins
On Fri, 2003-10-24 at 07:06, harm wrote: > On Thu, Oct 23, 2003 at 03:19:25PM -0400, Perrin Harkins wrote: > > On Thu, 2003-10-23 at 14:56, Brendan W. McAdams wrote: > > > Tried timestamping the second layer, and saving directly, no luck. > > > > The timestamp has to be in the first layer. It doe

Re: Storing Objects with Apache::Session

2003-10-24 Thread harm
On Thu, Oct 23, 2003 at 03:19:25PM -0400, Perrin Harkins wrote: > On Thu, 2003-10-23 at 14:56, Brendan W. McAdams wrote: > > Tried timestamping the second layer, and saving directly, no luck. > > The timestamp has to be in the first layer. It doesn't have to be a > timestamp, actually. Any write

Re: Storing Objects with Apache::Session

2003-10-23 Thread Perrin Harkins
On Thu, 2003-10-23 at 14:56, Brendan W. McAdams wrote: > Tried timestamping the second layer, and saving directly, no luck. The timestamp has to be in the first layer. It doesn't have to be a timestamp, actually. Any write at all in the first layer is fine, e.g. $session{'changed'} = 1. I forgo

Re: Storing Objects with Apache::Session

2003-10-23 Thread Brendan W. McAdams
Tried timestamping the second layer, and saving directly, no luck. Shrugged and dropped the midlevel tax_swap hash and it's working now. Thanks. On Thu, 2003-10-23 at 14:16, Perrin Harkins wrote: > Hi Brendan, > > > I'm trying to store an object (simple datatype, just a blessed hash > > inside

Re: Storing Objects with Apache::Session

2003-10-23 Thread Perrin Harkins
Hi Brendan, > I'm trying to store an object (simple datatype, just a blessed hash > inside) within Apache::Session. I'm doing this: > $session->{tax_swap}->{preview_sell_candidates} = [EMAIL PROTECTED]; > where @items is an array of SellCandidate objects... I've stored array > references in Apac

Re: Storing Objects with Apache::Session

2003-10-23 Thread Brendan W. McAdams
I also should note that the following subroutine works: # Persists sell candidates to session storage # Should take an array of Apache::MuniCenter::MarkupMatrix::TaxSwap::Candidate Objects # Should this be redone as an object (Yes, but question is when..) sub savePreviewSellList { my $sess

Storing Objects with Apache::Session

2003-10-23 Thread Brendan W. McAdams
I'm trying to store an object (simple datatype, just a blessed hash inside) within Apache::Session. I'm doing this: $session->{tax_swap}->{preview_sell_candidates} = [EMAIL PROTECTED]; where @items is an array of SellCandidate objects... I've stored array references in Apache::Session before; is