[html-formfu] defaults_from_model doesn't call deflators

Brian Cassidy brian.cassidy at nald.ca
Mon Feb 4 20:14:59 GMT 2008


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




More information about the HTML-FormFu mailing list