Re: Multiple HTML fields to one Python value, and vice-versa

"Mike Orr" <[email protected]>
Newsgroups gmane.comp.python.formencode
Message-ID <[email protected]>
On Thu, Feb 28, 2008 at 12:33 PM, Mike Orr <[email protected]> wrote:
> I got my LatitudeLongitude widget to work by making the value a dict
>  containing both the HTML values and Python values.  The code is too
>  long to post, but here's the docstring.

Also, I used FancyValidator rather than FormValidator, and validated
the int/float values myself rather than using validators.  it seemed
to be depending on too much magic to use field validators and my own
code, so I wasn't sure I'd get it right.  And FormEncode's "partial
validation" I still haven't found a use for, or at least if I do need
it I don't know it, so I decided to stick with something simpler until
I do find a need.

-- 
Mike Orr <[email protected]>

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.