Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #531 (closed defect: fixed)

Opened 13 years ago

Last modified 12 years ago

[PATCH] selection field bug

Reported by: randall@… Owned by: anonymous
Priority: normal Milestone: 0.9
Component: TG Widgets Version:
Severity: major Keywords:


selection field "selected" functionality from SQLObject data is broken. I attached a patch that works but since I don't grasp the widget design, it should be rewritten properly.


forms.py.patch Download (740 bytes) - added by randall.tnr.cc 13 years ago.
selection field patch
forms.py.patch.2 Download (961 bytes) - added by randall@… 13 years ago.
Fixes problem with SelectionField? population on update

Change History

Changed 13 years ago by randall.tnr.cc

selection field patch

comment:1 Changed 13 years ago by anonymous

  • Component changed from TurboGears to Widgets
  • Summary changed from selection field bug to [PATCH] selection field bug

comment:2 Changed 13 years ago by michele

I'm not a SQLObject expert so I let Kevin comment on this. One problem is that "value" should pass trought the validator before doing the comparision.

Anyway the expected format is a list of tuples

[(value, desc), (value, desc)]

This is an ad-hoc solution for SQLObject, Kevin?

Changed 13 years ago by randall@…

Fixes problem with SelectionField? population on update

comment:3 Changed 13 years ago by alberto

  • Status changed from new to closed
  • Resolution set to fixed

committed at r711 Thanks!

Note: See TracTickets for help on using tickets.