I've subclassed form.Dropdown, and modified comparison to str(self.value) == str(value)
On Aug 4, 3:37 pm, Branko Vukelić <bg.bra...@gmail.com> wrote: > On 2011-08-04 00:17 -0700, andrei wrote: > > > This is because you init dropdown with integer values, but after > > submit they come as string from web.input. > > Sounds like the Form module could use some casting before validation, > some mechanism to specify the type of data... > > -- > Branko Vukelic > bra...@herdhound.com > bg.bra...@gmail.com > > Lead Developer > Herd Hound (tm) - Travel that doesn't bitewww.herdhound.com > > Love coffee? You might love Loveffee, too. > loveffee.appspot.com -- You received this message because you are subscribed to the Google Groups "web.py" group. To post to this group, send email to webpy@googlegroups.com. To unsubscribe from this group, send email to webpy+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/webpy?hl=en.