[html-formfu] Reorganizing DependOn and MinMaxFields Constraints

Carl Franks fireartist at gmail.com
Tue Sep 18 12:03:18 GMT 2007


On 16/09/2007, Mario Minati <mario.minati at googlemail.com> wrote:
> Hi Carl,
>
> as the DependOn constraint is only a specialisation of the MinMaxFields
> constraint I would like to make it a subclass of it.
>
> Although I think of changing the behaviour of MinMaxFields if no max value is
> given:
> Currently I'm setting max to 1, I would like to set it to the number of
> elements in 'others'.

I'm not sure that I'm clear on how it'll work - but it'll probably be
clearer looking at the code.
Just commit it (with tests) - it's easier to discuss code and API's we
can all see.

Can always move it to a branch if we're not sure about keeping the
changes for the next cpan release.

Carl



More information about the HTML-FormFu mailing list