On 11/11/05, Kieren Diment <[EMAIL PROTECTED]> wrote: > Thanks David. > > Hopefully I'm getting to the end of this particular part of the > maze. If I"m not, then I'm in trouble... > > On 10 Nov 2005, at 20:18, David Baird wrote: > > > > > > The use BeerDB::Beer etc statements are necessary, it just seems like > > they're not. The call to setup(), among other things, adds the model > > class to the @ISA of each class you pass in the setup() call. That act > > automagically creates the BeerDB::Beer etc namespaces if they don't > > already exist. So you can now call methods of BeerDB::Beer, and as > > long as somewhere in the inheritance chain, the method is defined, > > then BeerDB::Beer seems to work as expected. But you haven't actually > > loaded/compiled and custom code in BeerDB/Beer.pm > > > > > Right. I've wound the HardBeerDB back to something that apparently > works again, and now I'm trying to break it. > > So, no authentication, no plugins. One, apparently working exported > method that doesn't do anything. > > I experimented until I had the minimum crap in the use base qw// > statement in BeerDB::DBI which was: > > use base qw/Maypole::Application Maypole::Model::CDBI::Plain /;
Maypole::Application doesn't belong in the model. It goes in the driver. <snip lots of symptoms> Can you post your driver (BeerDB), base model (BeerDB::DBI), and one model subclass (BeerDB::Beer)? d. ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php _______________________________________________ Maypole-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/maypole-users
