Comment 3 for bug 180653

Revision history for this message
Anand Chitipothu (anandology) wrote : Re: [Bug 180653] Re: web.form inputs fails when value parameter contains unicode data

On Jan 6, 2008 4:42 PM, Łukasz Topa <email address hidden> wrote:
> Hi, problem still exists.
> form.py properly rendered descriptions and error messages in unicode,
> I had problems only with value parameter, now it's raising errors also on net.websafe().

I have a test, which has unicode value and it passes.

    def testUnicode(self):
        t = form.Textbox('first_name', maxlength='255',
description=u'\u1234', value=u'\u1234')
        f = form.Form(t)
        f.render() # this fails if unicode is not supported.

        t = form.Textbox('first_name', maxlength='255',
description=u'\u1234', value=u'\u1234')
        t.note = u'\u1234'
        f = form.Form(t)
        f.render() # this fails if unicode is not supported.

try running python test/fom.py in webpy-0.23 directory.
See if you can add a failing test with your input.