[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cgiapp
Subject:    [cgiapp] Re: [dfv] Re: [cgiapp] name and 'err_' flags
From:       Brett Sanger <swiftone () swiftone ! org>
Date:       2005-07-18 17:58:00
Message-ID: 20050718175800.GG28257 () swiftone ! org
[Download RAW message or body]

On Mon, Jul 18, 2005 at 01:35:08PM -0400, Cees Hek wrote:
> And I ran into the same issue as you with multiple constraints for a
> single parameter, so I ended up rolling my own solution that works
> pretty much exactly as C::A::P::VRM, except that it creates a
> multi-dimentional hash for multiple constraints.  It usually looks
> something like this:

This is pretty much the same situation I've run into, and pretty much
the same solution.  I'm not using the plugin, I just have the methods in
my base class (I _always_ do validation if there's input, so why not?)

The thought of using msg hadn't occured to me, because, (like you) I
prefer to leave the exact message to the designer, so I just set flags
in a hash as Cees did.

-- 
SwiftOne  /  Brett Sanger
swiftone@swiftone.org   

---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/cgiapp@lists.erlbaum.net/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: cgiapp-unsubscribe@lists.erlbaum.net
For additional commands, e-mail: cgiapp-help@lists.erlbaum.net

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic