Skip Menu |

This queue is for tickets about the CatalystX-CRUD CPAN distribution.

Report information
The Basics
Id: 40846
Status: resolved
Priority: 0/
Queue: CatalystX-CRUD

People
Owner: Nobody in particular
Requestors: gordon [...] visi.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.32
Fixed in: (no value)



Subject: 'isa' reports "CatalystX::CRUD::Object::RDBO" in app-specific form class
"Broken" may be the wrong word to use here. I just want to let you know that on my platform, I had to kludge 2 lines in the app-specific form class to bypass a questionable value returned by "isa". I followed your CatalystX::CRUD::Tutorial v 0.31 in setting up my simple proof of concept application. using CatalystX::CRUD::Controller version 0.32 Tutorial example says to test in method 'init_with_album' (in my case, 'init_with_contact_methods') like so: ! $cmethods->isa( q{Dro::Contacts::CRUD::ContactMethods} ) but I had to change the test to this to get it to pass: ! $cmethods->isa( q{CatalystX::CRUD::Object::RDBO} ) Otherwise the error message following the test in that app-specific form class is triggered - ie, 'croak "need Dro::Contacts::CRUD::ContactMethods object"'. The correct object is there in $cmethods; however, it does not report the expected class name. I couldn't figure out what is wrong, hope you can. Here is more detail. Not sure what else might help so keeping this short. I examined the value of $c->stash->{object} from a slightly preceding point in the code: CatalystX::CRUD::Controller::fetch(...w/p/Dro-Contacts/script/../lib/CatalystX/CRUD/Controller.pm:149). This is in the fetch call that immediately precedes the call to my local 'init_with_contact_methods'. The whole value is probably not useful, but note these first few lines of it: 0 CatalystX::CRUD::Object::RDBO=HASH(0x25f94f4) 'delegate' => Dro::Contacts::CRUD::ContactMethods=HASH(0x25f94b8) '__xrdbopriv_in_db' => 1 '__xrdbopriv_loaded_from_driver' => 'sqlite' '__xrdbopriv_meta' => Rose::DB::Object::Metadata=HASH(0x22e350c) 'allow_auto_initialization' => 0 'auto_prime_caches' => 0 'class' => 'Dro::Contacts::CRUD::ContactMethods' BTW, I admire your CatalystX::CRUD project highly. Hope you keep polishing and extending it. Hope I can manage to get it to work for me here. :-) perl -v => This is perl, v5.8.8 built for darwin-thread-multi-2level uname -a => Darwin gps-imac.local 9.5.0 Darwin Kernel Version 9.5.0: Wed Sep 3 11:29:43 PDT 2008; root:xnu-1228.7.58~1/RELEASE_I386 i386
Subject: Re: [rt.cpan.org #40846] 'isa' reports "CatalystX::CRUD::Object::RDBO" in app-specific form class
Date: Wed, 12 Nov 2008 11:32:26 -0600
To: bug-CatalystX-CRUD [...] rt.cpan.org
From: Peter Karman <peter [...] peknet.com>
gp via RT wrote on 11/11/2008 10:55 PM: Show quoted text
> Tutorial example says to test in method 'init_with_album' (in my case, > 'init_with_contact_methods') like so: > > ! $cmethods->isa( q{Dro::Contacts::CRUD::ContactMethods} ) > > but I had to change the test to this to get it to pass: > > ! $cmethods->isa( q{CatalystX::CRUD::Object::RDBO} ) >
good catch. the tutorial is wrong, and likely has been since the start. I have just fixed it in svn and 0.33 release (when it comes out) will resolve this problem. Show quoted text
> > BTW, I admire your CatalystX::CRUD project highly. Hope you keep > polishing and extending it. Hope I can manage to get it to work for me > here. :-)
Thanks. You might want to look at CatalystX::CRUD::YUI and Rose::DBx::Garden::Catalyst for easy scaffolding builders. I have a new version of CXCYUI in progress that vastly improves the default ui. -- Peter Karman . peter@peknet.com . http://peknet.com/
Subject: Re: [rt.cpan.org #40846] 'isa' reports "CatalystX::CRUD::Object::RDBO" in app-specific form class
Date: Wed, 12 Nov 2008 10:43:17 -0800
To: bug-CatalystX-CRUD [...] rt.cpan.org
From: "Gordon Pedersen" <gordon [...] visi.com>
On Wed, Nov 12, 2008 at 9:32 AM, peter@peknet.com via RT <bug-CatalystX-CRUD@rt.cpan.org> wrote: Show quoted text
Show quoted text
>> ! $cmethods->isa( q{Dro::Contacts::CRUD::ContactMethods} ) >> >> but I had to change the test to this to get it to pass: >> >> ! $cmethods->isa( q{CatalystX::CRUD::Object::RDBO} )
Show quoted text
> good catch. the tutorial is wrong, and likely has been since the start.
Glad to know. Although it _was_ comforting to have such a well-targeted test.... Show quoted text
> Thanks. You might want to look at CatalystX::CRUD::YUI and > Rose::DBx::Garden::Catalyst for easy scaffolding builders. I have a new > version of CXCYUI in progress that vastly improves the default ui.
Know about them, eager to try, stuck right now trying to absorb Catalyst, Rose and your basic CRUD framework all at once. It's a lot to take in. NRN. -- Gordon Pedersen
0.33 uploaded to CPAN fixes tutorial.