Your fields are of type string (the default); so either make string representations of your lists or declare the fields as lists of strings.
On Wednesday, October 19, 2016 at 9:15:21 AM UTC-4, Tribo Eila wrote: > > Hi, > > supposed: > db.define_table('color', Field('blue'),Field('yellow'),Field('red')) > > COLORED_THINGS = { > 'blue': ['sky', 'jeans', 'powerline insert mode'], > 'yellow': ['sun', 'banana', 'phone book/monitor stand'], > > 'red': ['blood', 'tomato', 'test failure']} > > using db.color.insert(...). i'm trying to figure how to save in database > base on key dict. i tried for loops but my head starts turning. > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.