id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc
955,Nice warning or better exception requested.,S Brown ,anonymous,"I get the following error:
File ""/usr/lib/python2.4/site-packages/TurboGears-0.9a6-py2.4.egg/turbogears/validators.py"", line 58, in _to_python
value = format.parse_decimal(value)
File ""/usr/lib/python2.4/site-packages/TurboGears-0.9a6-py2.4.egg/turbogears/i18n/format.py"", line 165, in parse_decimal
value = value.replace(get_group_format(locale), """")
AttributeError: 'int' object has no attribute 'replace'
This happens because: I was expecting the user to input a variable like start=123 in a web form. But in my controller code I check to see if it's empty and if so, I add the key to the kwargs and a default value.
The problem was when I added the default value like so:
{{{ kwargs['start'] = 123 }}}
When I should have done this:
{{{ kwargs['start'] = ""123"" }}}
ie, I should have used a string. It would be nice if Turbogears had a warning about this when the value went through the validator, or if the Exception was thrown earlier, or was more descriptive (or both)",enhancement,closed,normal,1.0b2,TurboGears,0.9a6,normal,fixed,,