#1314: SelectionField does not format values being rendered in template
--------------------------------+-------------------------------------------
Reporter: rick446 | Owner: anonymous
Type: defect | Status: closed
Priority: normal | Milestone: 1.1.1
Component: TG Widgets | Version: 1.0.4b3
Severity: normal | Resolution: fixed
Keywords: needs confirmation |
--------------------------------+-------------------------------------------
Comment (by chrisz):
Just for the records, the patch in r6960 had two problems which have been
fixed now:
1) A value of 0 was not handled properly (see #2418).
2) As [comment:1 Alberto] already mentioned in the beginning, the
`to_python` conversion in `_is_option_selected` is actually necessary and
should not be removed. This has been added back in r6973 with the
improvement that `to_python` is now only carried out when the values are
really strings (e.g. in the case mentioned by Alberto, when a form with
errors in it is re-displayed).
I have also added regression tests for these issues.
--
Ticket URL: <http://trac.turbogears.org/ticket/1314#comment:13>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development
--
You received this message because you are subscribed to the Google
Groups "TurboGears Tickets" group.
This group is read-only. No posting by normal members allowed.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/turbogears-tickets?hl=en?hl=en