Hi,

I have an IP address which I store in the database as an unsigned 32 bit int.

I have added a validator to check it against RE{net}{IPv4} and also a filter to convert between dotted quad string and 32 bit unsigned integer (and back again).

Using the admin mode this worked fine when creating a new record, but fails when I try to save a record I have edited. It appears to be calling the validator after the filter has been applied.

Is this the intended behaviour (if it is, the difference between the create and update behaviour seems wrong)?

Or am I going about this the completely wrong way (perhaps by subclassing Jifty::Web::Form::Field and using render_as)?

Thanks in advance,

John


_______________________________________________
jifty-devel mailing list
[email protected]
http://lists.jifty.org/cgi-bin/mailman/listinfo/jifty-devel

Reply via email to