Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Catalyst: Dev

CataMoose & C::Model::Adaptor do not play nice?

 

 

Catalyst dev RSS feed   Index | Next | Previous | View Threaded


bobtfish at bobtfish

May 20, 2008, 10:07 AM

Post #1 of 2 (843 views)
Permalink
CataMoose & C::Model::Adaptor do not play nice?

Post to the list as requested in #catalyst-dev -
Catalyst::Model::Adaptor and CataMoose don't play too well together
(i.e. not at all currently).

This is something to do with C::M::A's use of Class::C3's
next::method stuff (I think), and happens in the COMPONENT method of
Catalyst::Component, but I haven't really got any further to
debugging this than that.

How I produced a test case below:

$ cd Catamoose
$ script/catalyst.pl TestApp
$ cat > TestApp/lib/ExternalModel.pm
package ExternalModel;
use Moose;

has thingie => ( is => 'rw', isa => 'Str' );

1;
$ cat > TestApp/lib/TestApp/Model/External.pm
package TestApp::Model::External;
use base 'Catalyst::Model::Adaptor';
__PACKAGE__->config( class => 'ExternalModel' );

1;

$ perl -Ilib -ITestApp/lib TestApp/script/testapp_server.pl -p 3005
Couldn't instantiate component "TestApp::Model::External", "need
class at lib/Catalyst.pm line 1927" at TestApp/script/
testapp_server.pl line 53
Compilation failed in require at TestApp/script/testapp_server.pl
line 53.

$ perl -ITestApp/lib TestApp/script/testapp_server.pl -p 3005
[debug] Debug messages enabled
[debug] Statistics enabled
etc.etc.etc

So it falls on it's ass in the Moose branch, but works with normal
Catalyst.

I've tarred up the TestApp that I built and attached it to this mail.

Hope this helps someone make a test from it / sort it out etc..

Cheers
t0m
Attachments: TestApp.tgz (40.2 KB)


dbix-class at trout

Apr 22, 2009, 6:54 AM

Post #2 of 2 (783 views)
Permalink
Re: CataMoose & C::Model::Adaptor do not play nice? [In reply to]

On Tue, May 20, 2008 at 06:07:54PM +0100, Tomas Doran wrote:

Aaaand I clearly misread the year on that when clearing the mailman queue.

I'm a fucking retard, ignore it.

--
Matt S Trout Need help with your Catalyst or DBIx::Class project?
Technical Director http://www.shadowcat.co.uk/catalyst/
Shadowcat Systems Ltd. Want a managed development or deployment platform?
http://chainsawblues.vox.com/ http://www.shadowcat.co.uk/servers/

_______________________________________________
Catalyst-dev mailing list
Catalyst-dev [at] lists
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst-dev

Catalyst dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.