[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
issue that heavily depends on the request or other language-sensitive
contexts. We have the zope.i18n.locales machinery for that. It already
covers the comma-vs-point problem.

___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


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
 0,01 is
  used. (yes, a comma).
 
 I think you're confusing format and precision. Format is a rendering
 issue that heavily depends on the request or other language-sensitive
 contexts. We have the zope.i18n.locales machinery for that. It already
 covers the comma-vs-point problem. 


___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users