Re: [Maypole] Problems using an alternative CDBI model

From: Sebastian Riedel (sri at oook.de)
Date: Thu Oct 21 2004 - 00:08:36 BST


Matt Adams:
> Sebastian Riedel wrote:
>
> > Should work :-/
> > It's line 32 in Maypole.pm, and i can't see a bug there...
>
> Here's the messed-up thing about it:
>
> You're right. I can't see a bug in line 32 of Maypole.pm, either.
>
> But, if I replace Maypole::Model::CDBI in line 32 of Maypole.pm with
> MyApp::Model::CDBI it works just fine.
>
> I think I'm going to go cry now.

Hehe, i found it...
Maypole::Plugin::Config::YAML bites you!

The plugins are initialized when you call setup(), and Config::YAML
propagates a new Maypole::Config object to config()...you can guess the
rest...

So if you add

model: 'MyApp::Model::CDBI'

to your yaml file it all works.

sebastian

_______________________________________________
maypole mailing list
maypole at lists.netthink.co.uk
http://lists.netthink.co.uk/listinfo/maypole



This archive was generated by hypermail 2.1.3 : Thu Feb 24 2005 - 22:25:56 GMT