[Catalyst] error using Sweet

Alan Humphrey alan.humphrey at comcast.net
Thu May 26 17:48:20 CEST 2005


I'm trying to use Catalyst::Model::CDBI::Sweet with little luck.  First the
error:

 

[Thu May 26 08:38:50 2005] [catalyst] [info] BirdWeb::Admin powered by
Catalyst 5.21

Can't locate object method "db_Main" via package
"BirdWeb::Admin::M::BirdWebDB::Birds" at
/usr/pkg/lib/perl5/site_perl/5.8.6/Ima/DBI.pm line 386.

 

What I've done is to change the use base line in my CDBI module to:

 

use base qw[Catalyst::Model::CDBI::Sweet Catalyst::Base];

 

I've also updated the use line in the BirdWebDB::Birds module the same way:

 

use base qw[Catalyst::Model::CDBI::Sweet Catalyst::Base];

 

When Catalyst fires up it loads everything normally, then quits with the
error above.

 

Any ideas?

 

- Alan

 

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rawmode.org/pipermail/catalyst/attachments/20050526/7f02025a/attachment.html


More information about the Catalyst mailing list