Looks like a bug introduced in this commit 
<https://github.com/web2py/web2py/commit/f239882d32c9dfecd20912706c77cd9b405458d3>,
 
but I think fixed in this one 
<https://github.com/web2py/web2py/commit/a053df7b7515b32a812a5fbef41c1a1993b33a86>.
 
Can you try the latest release?

Anthony

On Thursday, August 9, 2018 at 5:04:19 PM UTC-4, Morganti wrote:
>
> Hi people,
>
> I have an application that is being used in production almost one year. 
> Today I was making an update in local development environemnt and got the 
> error below. I tried to use other functions where the SQLFORM.grid is used 
> too and got the same error. 
>
> Traceback (most recent call last):
>   File "/home/andre/Projetos/web2py/gluon/restricted.py", line 219, in 
> restricted
>     exec(ccode, environment)
>   File 
> "/home/andre/Projetos/web2py/applications/nwproducao/controllers/adm.py" 
> <http://127.0.0.1:8000/admin/default/edit/nwproducao/controllers/adm.py>, 
> line 1192, in <module>
>   File "/home/andre/Projetos/web2py/gluon/globals.py", line 421, in <lambda>
>     self._caller = lambda f: f()
>   File 
> "/home/andre/Projetos/web2py/applications/nwproducao/controllers/adm.py" 
> <http://127.0.0.1:8000/admin/default/edit/nwproducao/controllers/adm.py>, 
> line 53, in lista
>     fields=field_list)
>   File "/home/andre/Projetos/web2py/gluon/sqlhtml.py", line 2859, in grid
>     page = safe_int(request.vars.page, 1) - 1
>   File "/home/andre/Projetos/web2py/gluon/sqlhtml.py", line 108, in safe_int
>     return int(x)
> TypeError: int() argument must be a string or a number, not 'NoneType'
>
>
> Thanks for your help.
>
> BR
>
> André
>
>

-- 
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.

Reply via email to