Thanks Anthony.

I  think ill submit a patch, Im doing some debugging and i have noted a few 
things:
Version 2.16.1-stable+timestamp.2017.11.14.05.54.25

gluon/html.py line 2217
        kwargs['request_vars'] = kwargs.get(
            'request_vars', current.request.post_vars)

the validate method assumes post_vars are used. Using request.vars instead 
would save us having to declare the request_vars parameter. Its actually 
good we are able to override but the form should be aware what variables to 
test against by default.

gluon/sqlhtml.py line 1904
            elif field.type == 'integer':
                if value is not None:
                    fields[fieldname] = safe_int(value)

sqlform.accepts actually does some kind of type checking but it looks that 
does not affect the acceptation. The lines were executed using .factory so 
maybe they could be used to check the variable types.

Im gonna try to fix these issues and submit a patch or create an issue 
request.
Thanks again.

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to