[Zope3-Users] Time for a Decimal field type in zope.schema?

Darryl Cousins darryl at darrylcousins.net.nz
Thu Aug 31 09:29:49 EDT 2006


Hi,

For what it may be worth, a Decimal field:

Code:
http://projects.treefernwebservices.co.nz/tfws.org.nz/file/trunk/src/tfws/field/field.py
Doctest:
http://www.tfws.org.nz/tfws.field.README.html

And a currency type which uses it:

Code:
http://projects.treefernwebservices.co.nz/tfws.org.nz/file/trunk/src/tfws/currency/app.py
Doctest:
http://www.tfws.org.nz/tfws.currency.README.currency.html

Courteous thanks to plonemall.

Sincere regards,
Darryl


On Thu, 2006-08-31 at 15:07 +0300, Marius Gedminas wrote:
> On Fri, 7 Apr 2006 09:37:02 -0400
> Gary Poster <gary at zope.com> wrote:
> 
> > On Apr 7, 2006, at 8:35 AM, Jeff Rush wrote:
> > > Perhaps this is an old topic, although I've done searches.  I've  
> > > seen the brief discussion about security proxies and the Decimal  
> > > type on zope3-users, but (to zope3-dev) what about getting it added  
> > > to the zope.schema as a first-class field type?  So we can have  
> > > auto-generated HTML forms and such?
> > >
> > > Has anyone already done this, in some Zope3 branch or private  
> > > development?
> > 
> > Not as far as I know.
> > 
> > > If not, is there any good reason it should not happen?  Must Zope3  
> > > support Python versions prior to the introduction of the Decimal type?
> > 
> > Not as far as I know.
> > 
> > > I'm willing to tackle it and make a submission, otherwise.
> > 
> > +1
> 
> I am going to work on this today.
> 
> Marius Gedminas
> _______________________________________________
> Zope3-users mailing list
> Zope3-users at zope.org
> http://mail.zope.org/mailman/listinfo/zope3-users



More information about the Zope3-users mailing list