Are the boolean fields writable? I think unwritable fields are excluded
from request.vars.

___________________________
*www.TenOutOfTen.org* <https://www.TenOutOfTen.org>
rogers...@gmail.com
(+95) 09 250018669 (Myanmar)



On Tue, 24 Nov 2020 at 22:21, Yebach <vid.og...@gmail.com> wrote:

> Hello
>
> I have a SQLform.grid and when validating fields i have some issues
>
> so to come around i have
>
> if request.args and request.args[0] in ['edit', 'new']:
>         if form.update_form:
>             if form.update_form.accepts(request.vars):
>                 print request.vars
>                 print request.args
>                 session.flash = T('Diagnoza postavljena')
>                 redirect(URL())
>
> the problem is that reques.vars is not including fileds that are of type
> boolean
>
> therefore i did a workaround and whn bool field is set as string it does
> but i want to change the text field to be checkbox
>
> any suggeestion? Either on getting the bool value or changing the field to
> be checkbox
>
> Thank you
>
> --
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/web2py/55aa4f8e-7da4-48c6-a526-f074f6aaa9acn%40googlegroups.com
> <https://groups.google.com/d/msgid/web2py/55aa4f8e-7da4-48c6-a526-f074f6aaa9acn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/CACWMBMPGELDe%2BKZ8nVt0dK%3DqLfCbf-mOCKQtEL9BJEU5P%3DzOCg%40mail.gmail.com.

Reply via email to