I tested the latest version 2.15.2 and I've got a problem when accessing 
ajax post parameters with web2py under Python 3.
The client sends a PUT request using jquery like this:
$.ajax('<url>', {
    data: JSON.stringify({
        report: report
        outputFormat: 'pdf'
    }),
    type: "PUT", contentType: "application/json",
    ...


in the controller I access the parameters, e.g.

output_format = request.vars.outputFormat


when using Python 2.7 the variable output_format is set to 'pdf' as 
expected. When using Python 3.5 the variable is None.

Alex

On Thursday, August 3, 2017 at 5:26:31 AM UTC+2, Richard wrote:
>
> I recall having conversation about that, I am not sure, I think it 
> language file or pickle objects that get modify in a no way back manner... 
> But, sure the app code it not affected... I should retrieve this 
> exchange... will try tomorrow.
>
> Richard
>
> On Wed, Aug 2, 2017 at 9:53 PM, Anthony <abas...@gmail.com <javascript:>> 
> wrote:
>
>> On Wednesday, August 2, 2017 at 12:26:45 PM UTC-4, Richard wrote:
>>>
>>> Don't forget to copy/paste (backup) you app before you try Python 3, 
>>> because there is no way back with the app once you use it under python 3 as 
>>> certain stuff are modify by python 3 that let your app unusable with python 
>>> 2 after.
>>>
>>
>> That sounds extreme, as you can certainly simply redeploy the original 
>> Python 2 code in a Python 2 environment -- there is a way back.
>>
>> Anthony
>>
>> -- 
>> 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+un...@googlegroups.com <javascript:>.
>> 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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to