MultiSelectWidget configured for ISet but creates list
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zope 3 |
Fix Released
|
High
|
Unassigned |
Bug Description
This is a bug because the MultiSelectWidget can't be used -- it only shows up for Sets, but causes TypeError because it generates list.
I'm not sure what the solution is. The obvious fix would be to modify MultiSelectWidget to generate sets.Set objects. But it might not be fair to force sets.Set as the data type when the developer wants something else.
The solution might also be to create a concrete Sequence field type and let the user provide the implementation type, whether the sequence is unique, etc. A general purpose sequence widget (or more likely a dispatcher) would implement the correct UI based on the field settings.
Comment from Jim in reply to this issue:
---
It should be useful for a sequence that wants unique values.
I agree that it is not useful as a set widget.
Of course, it should be easy to create a version that does.
Perhaps, in fact, it could alter what it generates based on it's
context.
---
Changed in zope3: | |
status: | Confirmed → Fix Committed |
Changes: submitter email, importance (medium => urgent)