[html-formfu] nested params merged

Jonas Alves jonas.alves at gmail.com
Wed Oct 31 16:02:58 GMT 2007


On 31/10/2007, Carl Franks <fireartist at gmail.com> wrote:
> On 31/10/2007, Jonas Alves <jonas.alves at gmail.com> wrote:
> > On 31/10/2007, Carl Franks <fireartist at gmail.com> wrote:
> > > On 30/10/2007, Jonas Alves <jonas.alves at gmail.com> wrote:
> > > >
> > > > Hi Carl,
> > > > Great work. :)
> > > > May I know if you pretend to implement the validation without the dot
> > > > parameters as I suggested? If not, is it because you don't like it? If
> > > > is because you don't want to wast time on it, will you accept a patch?
> > >
> > > Well, I have to admit I don't like the approach DBIC::Validation::FormFu takes.
> >
> > Yes, I know :/
> >
> > > I feel that it's a bit of an abuse to pass $dbic->create() a complex
> > > data structure that it wouldn't normally handle, particularly when
> > > DBIC is trying to subvert it by stripping keys containing "."
> >
> > The structures I want to pass to it are structures that dbic can handle.
> > The date element is an exception.
>
> btw, I can't remember whether I mentioned it in my earlier mail to the
> list, but the Date element has changed - it no longer uses names with
> dots in - instead they're of style "date_day".
>
> Because a Date element is more a 'field' than a 'block', it's child
> elements can't be nested, otherwise I'd have a big headache and would
> never have gotten this checked in :)
>

That's not a problem, as long as "date" continues to hold the inflated date. :)

-- 
Jonas



More information about the HTML-FormFu mailing list