It depends on how you are receiving the data in your controller. Remember all http requests transfer string data. So, it's up to your controller making appropriate conversions and validations according to your expectations.
Maybe a Web2py FORM helps you. On Thu, Aug 14, 2014 at 2:18 PM, Júlia Rizza <[email protected]> wrote: > Hello, > > When I save something on a page, it sends an AJAX with all the info I need > to record in the database. It seems much like this: > > {type: "cover", title: "test", description: null, tags: null} > > But the null types, when received by the controller, become string types. I > need them to become a NoneType before saving. How can I do this? > > -- > 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. -- 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.

