ItemDisplayWidget wrong truth testing
Bug #159232 reported by
Lorenzo Gil Sanchez
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zope 3 |
Won't Fix
|
Undecided
|
Lorenzo Gil Sanchez | ||
zope.app.form |
Fix Committed
|
Medium
|
Christian Theune | ||
zope.formlib |
Fix Released
|
Medium
|
Christian Theune |
Bug Description
The __call__ method of zope.app.
The reason I think it's wrong is that you may have an empty container for the value but this does not mean you don't have any value at all.
Example:
I have a vocabulary that returns the list of ICountries. Each country is a container for IState objects. The DisplayWidget for a field of type ICountry don't render the correct term if the country is empty.
Changed in zope3: | |
assignee: | nobody → lgs |
status: | New → In Progress |
Changed in zope3: | |
status: | In Progress → Won't Fix |
To post a comment you must log in.
Applied revised patch to avoid additional testing dependency in 3.12 branch rev 111334. I don't think this fixes all issues hidden in the code but it definitely improves the situation. (Why can't an empty string be a value? If I allow it another test breaks.)