Re: Decimal validation error.

Brian Sutherland <[email protected]>
Newsgroups gmane.comp.web.zope.devel
Message-ID <[email protected]>
On Wed, Feb 10, 2010 at 12:25:51PM -0800, Mats Nordgren wrote:
> Seems a plain vanilla install of bluebream validates decimals fine with
> zope.app.form.  Does z3c.form validate decimal fields or is that delegated
> to zope.schema?

I also hit this, AFAIKR z3c.form delegates it to zope.i18n.

We worked around this (no proper solution I'm afraid) by overriding the
default DataConverter in z3c.form.

> 
> On Wed, Feb 10, 2010 at 8:27 AM, Mats Nordgren <[email protected]> wrote:
> 
> > I have an interface with a decimal field.  It validates fine for 1,2 and 3
> > fractions but if I enter a decimal with 4 fractions I get validation error
> > "The entered value is not a valid decimal literal."
> >
> > I'm using the pypi release of bluebream and z3c.form 2.3.2.
> >
> > Mats
> >

> _______________________________________________
> Zope-Dev maillist  -  [email protected]
> https://mail.zope.org/mailman/listinfo/zope-dev
> **  No cross posts or HTML encoding!  **
> (Related lists - 
>  https://mail.zope.org/mailman/listinfo/zope-announce
>  https://mail.zope.org/mailman/listinfo/zope )


-- 
Brian Sutherland
_______________________________________________
Zope-Dev maillist  -  [email protected]
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )
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.