The second call in the following raises a TypeError: ugettext() got an unexpected keyword argument 'domain' exception in a Python shell:
import turbogears
turbogears.validators.Int().to_python('5')
turbogears.validators.Int().to_python('x')
However only the legitimate Invalid exception is raised if executed from a script.
The following on the other hand works as expected in both a Python shell and from a script:
import formencode
formencode.validators.Int().to_python('5')
formencode.validators.Int().to_python('x')
See the thread http://groups.google.com/group/turbogears/browse_thread/thread/93b7d5f608801652