Re: Rivet's FormBroker package

2016-10-20 Thread Massimo Manghi
More commits to the formbroker package: - the default values management has been improved and simplified. - new method 'response' fills an array with the last processed response. If called before method 'validate' the array is filled with only the defaults values assigned to the form

Re: Rivet's FormBroker package

2016-10-18 Thread Massimo Manghi
I've just committed a new version of the form broker that handles also default values (just adding 'default ' to the list) method 'validate' now accept a third optional parameter as name of an array where the filtered response is copied into. If this argument is specified then the original

Re: Rivet's FormBroker package

2016-10-17 Thread Karl Lehenbauer
I haven’t dug into it in depth yet, but this is looking pretty good. I think a nice addition would be to allow specification of a default value. If a var is defined in your FormBroker DDL-type specification, a default value isn’t defined, and the value is not present in the response, the