[Catalyst] Where should constraints go
Matt S Trout
dbix-class at trout.me.uk
Fri Nov 3 19:56:25 GMT 2006
Ian Docherty wrote:
> This is pretty much what I do via the FormValidator. I convert the
> 'missing' or the 'invalid' messages that it produces into the flags
>
> [% missing.user_username %]
> and
> [% invalid.user_username.length %]
> which then result in the error messages being produced.
>
> I still need to give some thought to internationalisation, but that is
> another question. :)
Since C::P::I18N relies on stuff that expects a dictionary per thing, I've
rather enjoyed
$c->localize("Created [_quant,...]", $created);
and similar for use in Reaction
--
Matt S Trout Offering custom development, consultancy and support
Technical Director contracts for Catalyst, DBIx::Class and BAST. Contact
Shadowcat Systems Ltd. mst (at) shadowcatsystems.co.uk for more information
+ Help us build a better perl ORM: http://dbix-class.shadowcatsystems.co.uk/ +
More information about the Catalyst
mailing list