Discussion:
[FE-discuss] UnicodeString validator problem in a schema
Kevin J. Smith
2010-05-26 00:50:26 UTC
Permalink
Hi,

I've stumbled across a problem whereby if you have a UnicodeString validator
with a max parameter as part of a schema and you throw it a float, it will
first do a len() check and throw a TypeError rather than a Invalid
exception.

I have checked through the source forge bugs and it looks like this is
identical to ID: 2879603. The issue is closed but there hasn't been a
release since it was closed. I don't really want to take the dev version
from the trunk so I was just wondering if anyone out there has a patch for
the issue.

Cheers


--
Never take life seriously. Nobody gets out alive anyway.
Christoph Zwerschke
2010-06-06 09:31:13 UTC
Permalink
Post by Kevin J. Smith
I have checked through the source forge bugs and it looks like this
is identical to ID: 2879603. The issue is closed but there hasn't
been a release since it was closed. I don't really want to take the
dev version from the trunk so I was just wondering if anyone out
there has a patch for the issue.
The patch is here:
http://bitbucket.org/ianb/formencode/changeset/5cc49d927c5d

Anyway, it would be nice if people could check out the dev version and
let us know if there are any problems preventing a release.

-- Christoph
Kevin J. Smith
2010-06-14 05:35:47 UTC
Permalink
Thanks, Christoph, for that pointing out the patch!

Is the tip stable and would that represent the next possible release? We
will give it a go if you feel its stable.

Cheers
Post by Christoph Zwerschke
Post by Kevin J. Smith
I have checked through the source forge bugs and it looks like this
is identical to ID: 2879603. The issue is closed but there hasn't
been a release since it was closed. I don't really want to take the
dev version from the trunk so I was just wondering if anyone out
there has a patch for the issue.
http://bitbucket.org/ianb/formencode/changeset/5cc49d927c5d
Anyway, it would be nice if people could check out the dev version and
let us know if there are any problems preventing a release.
-- Christoph
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
FormEncode-discuss mailing list
https://lists.sourceforge.net/lists/listinfo/formencode-discuss
--
Never take life seriously. Nobody gets out alive anyway.
Christoph Zwerschke
2010-06-14 15:24:53 UTC
Permalink
Post by Kevin J. Smith
Is the tip stable and would that represent the next possible release?
We will give it a go if you feel its stable.
Yes. All tests are passing and I'm using it for some of my apps already,
so I don't think you'll experience any big issues.

-- Christoph

Loading...