(Fwd) Re: [Maypole] Leakage of model? data on same apache, dif

Steve@cat-and-mouse.demon.co.uk Steve@cat-and-mouse.demon.co.uk
Sun, 13 Jun 2004 12:29:31 +0100


I seem to have sent this to myself rather than the list... Not too sure how I managed it, 
so here it is again.

On 12 Jun 2004 at 23:38, Steve@cat-and-mouse.demon.co. wrote:
> I've installed both ISellIt and BeerDB on the same server, and one of
> the applications tens to polute the either from a data standpoint -
> the frontpage for ISellIt could list beers, brewery, pubs etc as the
> table types on the frontpage - this will go as far as the links
> refusing to work, implying that large portions of data are being
> overwritten - perhaps in the apache request object or at class level
> somewhere?
> 

After some further investigation - I began to get a bit suspicious of the config package 
method, so I altered the following line in Maypole.pm

__PACKAGE__->mk_classdata($_) for qw( config init_done view_object ); 
to be:

__PACKAGE__->mk_classdata($_) for qw( init_done view_object );

( ie the config classdata )

and added the following to BeerDB, and other effected modules:

use Class::Data::Inheritable;
BeerDB->mk_classdata('config');
__PACKAGE__ -> config({});

Its not a solution, but seems to clear up the symptoms for me at the moment at least, I 
guess that the interactions with Class::Data::Inheritable are not going as would be 
expected.

Simon ( Wistow ) - does this work for you - any thoughts ( I think you are looking at the 
same issue)? 

Cheers,
Steve.