Re: [web2py] Re: dbio=False + autocomplete field = Error

2010-09-07 Thread Tito Garrido
Perfect!! Thanks! On Tue, Sep 7, 2010 at 7:26 PM, mdipierro wrote: > I apologize for the late reply: > > form.vars.id = db.user_jogo.insert(**dict(form.vars)) > > should have been: > > form.vars.id = > db.user_jogo.insert(**db.user_jogo._filter_fields(form.vars)) > > The _filter_fields will re

[web2py] Re: dbio=False + autocomplete field = Error

2010-09-07 Thread mdipierro
I apologize for the late reply: form.vars.id = db.user_jogo.insert(**dict(form.vars)) should have been: form.vars.id = db.user_jogo.insert(**db.user_jogo._filter_fields(form.vars)) The _filter_fields will remove from the form.vars those fields that do not belong there (for example hidden fi

[web2py] Re: dbio=False + autocomplete field = Error

2010-09-01 Thread Tito Garrido
nobody? On Mon, Aug 30, 2010 at 12:02 AM, Tito Garrido wrote: > Hi Folks, > > I'm trying to validade a form before sending it. There is a hidden field > and an autocomplete field on the form and there is what I get: > > > % repr(invalid_fieldnames) > SyntaxError: invalid field names: ['_autoc