I think you are wrong. Things like HTML::FormFu::Inflator::DateTime
exist to inflate a submitted value into an object.
A deflator would do the opposite like HTML::FormFu::Deflator::Strftime.
Am 04.02.2008 um 21:14 schrieb Brian Cassidy:
Moritz Onken wrote:
I created a DateTime deflator in the form config file but this
deflator isn't called on defaults_from_model. I can't find a
deflator call in the source of HTML::FormFu::Model::DBIC. Is
supposed to be? I could add the deflator to the dbic table but I
prefer the formfu deflator.
I may be mistaken, but going /from/ the model would mean that
inflators are called. Saving /to/ the model is when deflation would
happen.
As a diagram:
+------+ <--- ( defaults_from_model/inflate ) ---- +-------+
| FORM | | MODEL |
+------+ ---- ( save_to_model/deflate ) ---------> +-------+
-Brian
_______________________________________________
HTML-FormFu mailing list
[email protected]
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu
_______________________________________________
HTML-FormFu mailing list
[email protected]
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu