Re: Testing FormEncode 1.3.0a1

Chris Lambacher <[email protected]> Thu, 5 Dec 2013 12:12:37 -0500
Newsgroups gmane.comp.python.formencode
Message-ID <CAAXXHgLrqVNdcypAy9a7pmpAfa+iCSHJ+-Qsi8xwFFCkuOyo8Q@mail.gmail.com>
--===============8219963915175976471==
Content-Type: multipart/alternative; boundary=089e01161d26eb050904eccca2ac

--089e01161d26eb050904eccca2ac
Content-Type: text/plain; charset=UTF-8

Hi Sebastien,

>
> > Also the 1.2.5
> > release had some backwards incompatible changes that might cause a
> problem
> > if you have custom validators that expect sequences to be passed to them
> > from a Schema. Details can be found here:
> > http://www.formencode.org/en/latest/whatsnew-1.2.5.html.
>
> Right, same broken tests with the 1.2.5.


That narrows things down. Do you have a custom validator that expects a
sequence that doesn't derive from a formencode validator that expects as
sequence (list, dict, tuple, etc)? If so you will need to add
an accept_iterator = True property to your validator. You can do a quick
test for that by adding it to the instantiation args somewhere you use the
validator.

-Chris

-- 
Christopher Lambacher
[email protected]

--089e01161d26eb050904eccca2ac
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_extra">Hi Sebastien,<br><div class=3D"=
gmail_quote"><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px =
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-=
style:solid;padding-left:1ex">
<div class=3D"im"><br>
&gt; Also the 1.2.5<br>
&gt; release had some backwards incompatible changes that might cause a pro=
blem<br>
&gt; if you have custom validators that expect sequences to be passed to th=
em<br>
&gt; from a Schema. Details can be found here:<br>
&gt; <a href=3D"http://www.formencode.org/en/latest/whatsnew-1.2.5.html" ta=
rget=3D"_blank">http://www.formencode.org/en/latest/whatsnew-1.2.5.html</a>=
.<br>
<br>
</div>Right, same broken tests with the 1.2.5.</blockquote></div><div class=
=3D"gmail_extra"><br></div>That narrows things down. Do you have a custom v=
alidator that expects a sequence that doesn&#39;t derive from a formencode =
validator that expects as sequence (list, dict, tuple, etc)? If so you will=
 need to add an=C2=A0accept_iterator =3D True property to your validator. Y=
ou can do a quick test for that by adding it to the instantiation args some=
where you use the validator.</div>
<div class=3D"gmail_extra"><br></div><div class=3D"gmail_extra">-Chris<br c=
lear=3D"all"><div><br></div>-- <br>Christopher Lambacher<br><a href=3D"mail=
to:[email protected]">[email protected]</a>
</div></div>

--089e01161d26eb050904eccca2ac--


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

------------------------------------------------------------------------------
Sponsored by Intel(R) XDK 
Develop, test and display web and hybrid apps with a single code base.
Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
--===============8219963915175976471==
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

--===============8219963915175976471==--