[Catalyst] Where has Maypole's pager gone?

Will Hawes info at whawes.co.uk
Thu Apr 28 18:55:07 CEST 2005

> Sebastian Riedel said:

> > I personally like how chansen's new C::M::CDBI::Sweet handles it.

I did get Andy's pager example running eventually and it works well, thanks. I've also been trying to evaluate this in the Hops application by swapping "use Catalyst::Model::CDBI::CRUD;" for "use Catalyst::Model::CDBI::Sweet;" in Hops::M::CDBI. But when I run server.pl I get this error:

[Thu Apr 28 17:45:20 2005] [catalyst] [debug] Found home "E:\Hops-0.03"
Use of 'new' is deprecated at C:/Perl/lib/NEXT.pm line 75. Use 'create' instead
Couldn't instantiate "Hops::M::CDBI", "password is not a column of Hops::M::CDBI
 at C:/Perl/lib/NEXT.pm line 75
" at C:/Perl/site/lib/Catalyst/Engine.pm line 665

I guess this caused by the fact that Catalyst::Model::CDBI::Sweet has multiple inheritance from both Class::DBI and Catalyst::Base. But I'm not sure what to do about that, or whether it can be just dropped into Hops like that. Changing the call to NEXT->new to NEXT->create does not work, that gives me:

[Thu Apr 28 17:54:35 2005] [catalyst] [debug] Found home "E:\Hops-0.03"
Couldn't instantiate "Hops::M::CDBI", "Can't call NEXT::create from Hops::M::CDB
I::new at E:/Hops-0.03/script/../lib/Hops/M/CDBI.pm line 17
" at C:/Perl/site/lib/Catalyst/Engine.pm line 665

Stuck again! Any ideas please.


More information about the Catalyst mailing list