Re: [web2py] Re: web2py custom form 'TypeError'

2018-02-08 Thread Anthony
> > Before you do that, can we see exactly what is the request.vars['id'] > object? Based on the exception you are getting, it seems it is a list, in > which case, there is a problem with your code, not with SQLFORM. > Note, in particular, if you have an "id" variable in the URL query string a

[web2py] Re: web2py custom form 'TypeError'

2018-02-08 Thread Anthony
On Thursday, February 8, 2018 at 1:11:22 PM UTC-5, Leonel Câmara wrote: > > This is a bug, please submit an issue in github. The problem is that your > request.vars.id is not and instance of (int, long, str, unicodeT) > > The bug is in this line: > https://github.com/web2py/web2py/blob/master/gluo

Re: [web2py] Re: web2py custom form 'TypeError'

2018-02-08 Thread Anthony
On Thursday, February 8, 2018 at 4:26:59 PM UTC-5, F.C. wrote: > > Thank you so much for your help! > > I will go and raise it > Before you do that, can we see exactly what is the request.vars['id'] object? Based on the exception you are getting, it seems it is a list, in which case, there is a

Re: [web2py] Re: web2py custom form 'TypeError'

2018-02-08 Thread Francois Barnard
Thank you so much for your help! I will go and raise it On Thu, Feb 8, 2018 at 12:11 PM, Leonel Câmara wrote: > This is a bug, please submit an issue in github. The problem is that your > request.vars.id is not and instance of (int, long, str, unicodeT) > > The bug is in this line: > https://gi

[web2py] Re: web2py custom form 'TypeError'

2018-02-08 Thread Leonel Câmara
This is a bug, please submit an issue in github. The problem is that your request.vars.id is not and instance of (int, long, str, unicodeT) The bug is in this line: https://github.com/web2py/web2py/blob/master/gluon/sqlhtml.py#L1369 To workaround is to get the record yourself. form = SQLFORM(db