Allowing validation to pass for partial post values?

Iain Duncan <[email protected]> Fri, 27 Jul 2012 11:39:40 -0700
Newsgroups gmane.comp.python.formencode
Message-ID <CAN9NcLySCh+5PuT4EZRyTgyeFpc+yMVFCcC_w5HRDg6K-1f8-Q@mail.gmail.com>
--===============2239635149888686834==
Content-Type: multipart/alternative; boundary=e89a8fb1f8d6f7f7bc04c5d408bd

--e89a8fb1f8d6f7f7bc04c5d408bd
Content-Type: text/plain; charset=ISO-8859-1

Hi, I'm using form encode for validation, and am building a ReST back end
for use with Dojo data stores. the Dojo system wants to be able to use PUT
requests with partial lists of params, and I'm trying to figure out best to
do that. So if I have a schema, and some keys are missing, I want it to
'pass', with the values dictionary as is, rather than having the values
dict have values for the missing keys that come from using if_missing='foo'.

Is there way to do that without resorting to hackery like inspecting the
errors and discarding all the ones that are missing value errors?

thanks
Iain

--e89a8fb1f8d6f7f7bc04c5d408bd
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hi, I&#39;m using form encode for validation, and am building a ReST back e=
nd for use with Dojo data stores. the Dojo system wants to be able to use P=
UT requests with partial lists of params, and I&#39;m trying to figure out =
best to do that. So if I have a schema, and some keys are missing, I want i=
t to &#39;pass&#39;, with the values dictionary as is, rather than having t=
he values dict have values for the missing keys that come from using if_mis=
sing=3D&#39;foo&#39;.<div>
<br></div><div>Is there way to do that without resorting to hackery like in=
specting the errors and discarding all the ones that are missing value erro=
rs?</div><div><br></div><div>thanks</div><div>Iain</div>

--e89a8fb1f8d6f7f7bc04c5d408bd--


--===============2239635149888686834==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
--===============2239635149888686834==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
FormEncode-discuss mailing list
FormEncode-discuss-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/formencode-discuss

--===============2239635149888686834==--