#824: Number validator not working
------------------------+---------------------------------------------------
 Reporter:  anonymous   |        Owner:  anonymous
     Type:  defect      |       Status:  new      
 Priority:  normal      |    Milestone:           
Component:  TurboGears  |      Version:  0.9a5    
 Severity:  normal      |   Resolution:           
 Keywords:              |  
------------------------+---------------------------------------------------
Comment (by godoy):

 This works here.  Can you try the same sequence at an interactive
 interpreter, please?

 {{{
 >>> from turbogears import validators
 >>> string = "1146671186.081156"
 >>> validator = validators.Number()
 >>> validator.to_python(string)
 1146671186.081156
 >>> validator.from_python(validator.to_python(string))
 u'1,146,671,186.08'
 >>>
 }}}

 As you can see, it is formatted to use en_US locale by default.

-- 
Ticket URL: <http://trac.turbogears.org/turbogears/ticket/824>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears Tickets" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears-tickets
-~----------~----~----~----~------~----~------~--~---

Reply via email to