[jifty-devel] Re: [Jifty-commit] r1144 - in jifty/trunk: lib/Jifty/Action/Record

Sean E. Millichamp sean at enertronllc.com
Fri Jun 2 14:26:32 EDT 2006


On Fri, 2006-06-02 at 14:13 -0400, Jesse Vincent wrote:
> Do we want to be testing for truth or definedness? I'm betting ths will
> stop you from creating a record with a value of 0.

> On Fri, Jun 02, 2006 at 01:48:34PM -0400, jifty-commit at lists.jifty.org wrote:

> >      for (grep { defined $self->argument_value($_) } $self->argument_names) {
> > +        # Skip nonexistent fields
> > +        next unless $self->record->column($_);
> > +

It is my understanding that $self->record->column(FIELD_NAME) returns a
Jifty::DBI::Column reference if the column named FIELD_NAME exists in
the record and undef if the column does not exist.

I borrowed this code straight from Jifty::Action::Record::Update so that
creating records with column type 'password' wouldn't choke on the
auto-generated 'password_confirm' argument field.

Sean

-- 
 Sean E. Millichamp, Enertron LLC, 586-757-1200 x102

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.bestpractical.com/pipermail/jifty-devel/attachments/20060602/b5c7616a/attachment.pgp


More information about the jifty-devel mailing list