[html-formfu] Reorganizing DependOn and MinMaxFields Constraints

Mario Minati mario.minati at googlemail.com
Tue Sep 18 20:05:39 GMT 2007

On Tuesday 18 September 2007 13:03:18 Carl Franks wrote:
> 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.

While trying to do it I realized that there is a small difference between the 
two modules. So forget it.


More information about the HTML-FormFu mailing list