[Maypole] namespace conflicts with multiple maypole applications
Simon Wistow
simon@thegestalt.org
Tue, 29 Jun 2004 18:08:08 +0100
On Tue, Jun 29, 2004 at 01:09:32PM +0100, Steve Pitchford said:
> I don't believe Simon had any luck with it, and unfortunatly I've had a
> period of illness which limited the amount of time I could spend on it,
> still, you might find the information helpful in your investigation.
Not sure why it does this on some systems and not others but I've got it
working on my previously broken system.
Ther pattern I had to follow was
package Foo;
use base 'Apache::MVC';
Foo->config({});
# do config stuff here
# ...
# very important that this is after all the config stuff
Foo->setup();
# do relationship stuff now
# ...
after which it all seem to work fine.
I'll try and make this more automatic - I'm not sure why I need to do
Foo->config({});
since Maypole has a line that should do that. However that will have to
wait until I've had some sleep. Post Glastonbury programming considered
harmful.
Simon