Five: formlib REQUEST parameters conversion
Bug #176563 reported by
Sylvain Viollon
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zope 2 |
Invalid
|
Medium
|
Unassigned |
Bug Description
In formlib port, Five handle the conversion in the request form object of string from 'str' to 'unicode' (paying attention to IUserPreferredC
And this happens if in the same page you put more than one 'form.SubPageForm', the conversion code is called twice, 'unicode' object from the previous conversion are not 'str' anymore, and are discarded (and your multi select widget becomes empty on the second form of your page).
To post a comment you must log in.
There is two different solutions to solve this problem:
- Make a non-destructive conversion method;
- Called conversion method only one time.
Here a simple patch for the first method.