[html-formfu] Re: refactoring defaults_from_model (DBIC)

Carl Franks fireartist at gmail.com
Fri Jan 18 16:03:25 GMT 2008


On 15/01/2008, Zbigniew Lukasiak <zzbbyy at gmail.com> wrote:
> On Jan 15, 2008 5:13 PM, Carl Franks <fireartist at gmail.com> wrote:
> > On 13/01/2008, Zbigniew Lukasiak <zzbbyy at gmail.com> wrote:
> > > I've simplified it even further - by getting rid of the $attrs
> > > parameter for the internal functions.  The new file is attached.
> >
> > Committed!
> Great!
>
> I've got also a few tests - I'll try them out and if they are still
> passing I'll commit them as well.

I noticed that the refactor had reverted back to the old behaviour of
always using get_column() - I've fixed that so that it uses
$row->$name() accessors (when it doesn't clash with a rel name), and
added tests to ensure that DBIC column inflators are being run.

Carl



More information about the HTML-FormFu mailing list