[web2py] Re: autocomplete widget error when inserting record

2011-06-16 Thread apple
thanks. that works albeit a bit esoteric. On Jun 17, 12:03 am, Anthony wrote: > Maybe try: > > form.vars.id = table.insert(**table._filter_fields(form.vars)) > > The _filter_fields method should pull out only the dict keys that are fields > in the table. > Seehttp://web2py.com/book/default/chap

[web2py] Re: autocomplete widget error when inserting record

2011-06-16 Thread Anthony
Maybe try: form.vars.id = table.insert(**table._filter_fields(form.vars)) The _filter_fields method should pull out only the dict keys that are fields in the table. See http://web2py.com/book/default/chapter/07#One-form-for-multiple-tables for an example of this. Anthony On Thursday, Ju