[Catalyst] Reaction Development?
jjn1056 at yahoo.com
Tue Feb 6 16:15:36 GMT 2007
--- Matt S Trout <dbix-class at trout.me.uk> wrote:
> On 6 Feb 2007, at 15:33, John Napiorkowski wrote:
> > --- Jason Kohles <email at jasonkohles.com> wrote:
> >> On Feb 5, 2007, at 5:58 PM, John Napiorkowski
> >>> Hi,
> >>> Is there a test suite for Reaction other than
> >>> sample application at the source control site?
> >>> Because I have a patch to fix a problem with the
> >> DBIC
> >>> action reflector not properly creating actions
> >>> DBIC classes in a deep hierarchy (like
> >>> myschema::membership::members) but since I could
> >> never
> >>> get the sample app to run I can't write a test
> >> the
> >>> problem (and I know a patch without a test won't
> >> be
> >>> accepted).
> >> Any chance you could share the patch even though
> >> doesn't have
> >> tests yet? I've been looking for this bug off
> >> on for the last
> >> three or four days, it's been driving me crazy...
> > Not sure if this is the same bug as what is
> > you trouble. My problem is when I have 'deep'
> > hierarchies under my DBIC Schema, something like:
> > /myapplib
> > /Schema
> > db.pm, # inheriting from DBIx::Class::Schema
> > /db
> > /membership
> > members.pm #inherit from DBIx::Class
> > so the package name for that "members.pm" file
> > be something like:
> > package myapplib::Schema::db::membership::members;
> > I found the actions that the action reflector
> > create would look something like:
> > catapp::Model::Action::Createmembers
> > catapp::Model::Action::Deletemembers
> > catapp::Model::Action::Updatemembers
> Which is why I'm mostly using the
> ->reflect_action_for syntax and
> using Model::Membership::Members::Action::Create and
> similar, to go
> with the way stuff works by default in
So something like:
my $r = ActionReflector->new;
[one of the above for each action type]
Would also have solved the problem, I guess? I guess
this way give you more finely tuned control.
> Matt S Trout, Technical Director, Shadowcat Systems
> Offering custom development, consultancy and support
> contracts for
> DBIx::Class and BAST. Contact mst (at)
> shadowcatsystems.co.uk for
> + Help us build a better perl ORM: http://dbix-
> class.shadowcatsystems.co.uk/ +
> List: Catalyst at lists.rawmode.org
> Searchable archive:
> Dev site: http://dev.catalyst.perl.org/
Get your own web address.
Have a HUGE year through Yahoo! Small Business.
More information about the Catalyst