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

2006-08-31 Thread Marius Gedminas
On Fri, 7 Apr 2006 09:37:02 -0400 Gary Poster [EMAIL PROTECTED] 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)

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

2006-08-31 Thread Darryl Cousins
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:

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

2006-08-31 Thread Marius Gedminas
On Thu, 31 Aug 2006 20:29:49 +0700 Darryl Cousins [EMAIL PROTECTED] wrote: On Thu, 2006-08-31 at 15:07 +0300, Marius Gedminas wrote: I am going to work on this today. For what it may be worth, a Decimal field: Code:

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

2006-08-31 Thread Lennart Regebro
On 8/31/06, Darryl Cousins [EMAIL PROTECTED] wrote: Hi, For what it may be worth, a Decimal field: Just a note: The format should be localized. In some countries 0,01 is used. (yes, a comma). ___ Zope3-users mailing list Zope3-users@zope.org

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

2006-08-31 Thread Philipp von Weitershausen
Lennart Regebro wrote: On 8/31/06, Darryl Cousins [EMAIL PROTECTED] wrote: Hi, For what it may be worth, a Decimal field: Just a note: The format should be localized. In some countries 0,01 is used. (yes, a comma). I think you're confusing format and precision. Format is a rendering

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

2006-08-31 Thread Darryl Cousins
Hi Marius, Cheers. I don't have checkin rights so I'll leave it to you (or another) if it considered is worthwhile. Sincere regards, Darryl. On Fri, 2006-09-01 at 00:21 +0300, Marius Gedminas wrote: I committed my version (somewhat changed from the diff I posted here) into Zope 3 trunk.

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

2006-08-31 Thread Darryl Cousins
Hi, Yes, I am aware of the use of a comma as a decimal place indicator, but was unsure how to handle it. Thanks Philipp for the hint. Sincere regards, Darryl On Thu, 2006-08-31 at 19:03 +0200, Philipp von Weitershausen wrote: Just a note: The format should be localized. In some countries