[Catalyst] Data::FormValidator

Marcello m.romani at spinsoft.it
Thu Nov 24 15:59:31 CET 2005


Caroline Johnston ha scritto:
>>msgs => {
>>      format      => '%s',
>>      },
> 
> 
> right, so what I want is a way to make that the default so that I don't
> have to type it into every profile in my entire app. Any ideas?
> 
> thanks for the help!
> 
> Cxx
> 
>

I build a default input profile in MyApp.pm and import it (more or less) 
like this:

sub some_sub_somewhere {
   my ( $self, $c ) = @_;

   my %profile = %{ $c->config->{default_dfv_profile} };
   $profile{required} = [ qw( id name notes ) ];

   ...

}

HTH

-- 
Marcello Romani
Developer
Spin s.r.l.
Reggio Emilia
http://www.spinsoft.it




More information about the Catalyst mailing list