[ZCM] [ZC] 303/ 2 Comment "propertysheets strip last char of longs"

Collector: Zope Bugs and Patches ... zope-coders@zope.org
Tue, 19 Mar 2002 08:24:28 -0500


Issue #303 Update (Comment) "propertysheets strip last char of longs"
 Status Pending, Zope/bug medium
To followup, visit:
  http://collector.zope.org/Zope/303

==============================================================
= Comment - Entry #2 by efge on Mar 19, 2002 8:24 am

I mean, properties.dtml of course.

________________________________________
= Request - Entry #1 by efge on Mar 19, 2002 7:06 am

> <iap@y2fun.com> wrote:                                                         
> Hi,  My both zope 2.5.0/Linux and 2.5.1b1/FreeBSD installation  are strange:  
> Say, setting a property A to be "long".                                       
> And assign 1234 to  A ,                                                       
> After submition, it comes to be "123".                                        
                                                                                
Yes, I confirm that.                                                            
(FWIW the value is correctly stored but incorrectly displayed).                 
                                                                                
The bug is in OFS/dtml/properties.py, we unconditionnaly strip the last         
character on display, which is bad.                                             
                                                                                

==============================================================