Re: [web2py] translate AJAX null type into NoneType

2014-08-14 Thread Vinicius Assef
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

[web2py] translate AJAX null type into NoneType

2014-08-14 Thread Júlia Rizza
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