TypeError when passing list to itemswidget
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Triaged
|
Low
|
Unassigned | ||
Zope 3 |
Won't Fix
|
Medium
|
Unassigned | ||
zope.formlib |
Fix Released
|
Medium
|
Tres Seaver |
Bug Description
When an itemswidget inheriting from SingleDataHelper (like SelectWidget or RadioWidget) receives a list from the request, it fails with a TypeError.
The widget will receive a list instead of a string with handcrafted URLs like: form?field.
I think it would be better if TypeError would be caught and transformed into the appropriate ConversionError.
I'm attaching a patch with test.
Recently: OOPS-981G1766, OOPS-981H1776
TypeError: list objects are unhashable
Changed in launchpad: | |
assignee: | nobody → flacoste |
importance: | Undecided → High |
status: | Unconfirmed → In Progress |
Changed in launchpad: | |
importance: | High → Low |
description: | updated |
Changed in launchpad-foundations: | |
status: | In Progress → Triaged |
assignee: | Francis J. Lacoste (flacoste) → nobody |
Changed in zope.formlib: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
Changed in zope3: | |
status: | Confirmed → Won't Fix |
tags: | added: bugday20100424 |
Can somebody who is more certain about zope.app.form can review this patch?