Re: manage_addField patch
Clemens Robbenhaar <robbenhaar-WaVJUzJ3u31Wk0Htik3J/[email protected]> Fri, 21 Jan 2005 12:48:05 +0100
| Newsgroups | gmane.comp.web.zope.formulator.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Bertrand, Martijn, Betrand: > To reproduce it on the CVS sources: >=20 > - create a "Formulator Form" with "Unicode mode" activated > - create a new field in this form with id=3Dfoo title=3Db=E2r (ie. w= ith any > non-ASCII char in the title) then click "Add and Edit" > - click on "Save Changes" without making any change >=20 > Error Type: UnicodeDecodeError > Error Value: 'ascii' codec can't decode byte 0xc3 in position 1: ord= inal not in range(128) >=20 Thank You very much, I now can easily reproduce this. > Applying the patch doesn't fix already created fields, but fixes the= > problem for new fields. Certainly not. Does anyone need an "upgrade" script for that. It shoul= d be comparably simple to have a Python script to fix it. Alternatively one could think of using the "Upgrade" button in the form Settings tan,= but I am not sure about how to get this working ... it quite some time since this has been used, I guess. Martijn:=20 I will not find the time to attach the patch today. Also I suspect a similar problem appears if one creates a new form with non-acsii title and unicode flag set, though I have not checked out details. Can You either apply the patch Yourself, or wait with the 1.8 release=20= until after the weekend? Cheers, Clemens