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']}
db.color.insert(**COLORED_THINGS)
Your fields are of type string (the default); so either make string representations of your lists or declare the fields as lists of strings.Or, if you are trying to use this data to define *multiple* records, something like this might do what you want:for i in xrange(3):db.color.insert( blue=COLORED_THINGS['blue'][i], yellow=COLORED_THINGS['yellow'][i], red=COLORED_THINGS['red'][i] )
COLORED_THINGS = [
{'blue': 'sky', 'yellow': 'sun', 'red': 'blood'},
{'blue': 'jeans', 'yellow': 'banana', 'red': 'tomato'}
]
db.color.bulk_insert(COLORED_THINGS)