Re: quick sanity check on hooking up params::validate to cdbi subclasses.

[prev] [thread] [next] [Date index for 2005/07/28]

From: George Hartzell
Subject: Re: quick sanity check on hooking up params::validate to cdbi subclasses.
Date: 03:59 on 28 Jul 2005
Perrin Harkins writes:
 > George Hartzell wrote:
 > > I think that I'd like to use params::validate to check up on values
 > > used to create my class::dbi based objects.
 > > 
 > > Seems like the right thing to do is override sub create {} in my
 > > subclasses, and if things validate then just call SUPER::create.
 > > 
 > > Does that seem reasonable?
 > 
 > Yes, I do this exact thing with Params::Validate in my Class::DBI classes.

Do you also use before_set_COLUMN hooks to get at updates?

Is there a particular reason that you override create instead of using
combinations of before_set_COL and create hooks?

g.

Re: quick sanity check on hooking up params::validate to cdbi subclasses.
George Hartzell 03:59 on 28 Jul 2005

Generated at 16:35 on 28 Jul 2005 by mariachi v0.52