just tested values = ((0, 'value 1'), (1, 'value 2))
db.table.field.requires = IS_IN_SET(values) works ok. On Mon, Oct 10, 2011 at 7:01 PM, Cliff <cjk...@gmail.com> wrote: > Mostly fixed now. There was also a bug in my controller code that was > complicating things. > > One problem remains. With readonly=True, the field still shows the > dictionary key rather than the value. > > On Oct 10, 5:09 pm, Cliff <cjk...@gmail.com> wrote: > > Made the change as recommended - still not working. > > > > On Oct 10, 5:01 pm, Cliff <cjk...@gmail.com> wrote: > > > > > > > > > Wait a minute, though. I want a drop down menu. > > > > > So if I do this: > > > Field('status', 'string', requires = IS_IN_SET({'A' : 'Apple', 'B': > > > 'Banana'})) > > > > > I will get a drop down? > > > > > On Oct 10, 4:40 pm, Bruno Rocha <rochacbr...@gmail.com> wrote: > > > > > > On Mon, Oct 10, 2011 at 5:38 PM, Cliff <cjk...@gmail.com> wrote: > > > > > Anthony, > > > > > > > I don't want multiple values. I just want one of those values. > > > > > > If you want only one value, why are you using list:string? > > > > > > change to > > > > > > Field('status', 'string'), > -- -- Bruno Rocha [ About me: http://zerp.ly/rochacbruno ] [ Aprenda a programar: http://CursoDePython.com.br ] [ O seu aliado nos cuidados com os animais: http://AnimalSystem.com.br ] [ Consultoria em desenvolvimento web: http://www.blouweb.com ]