>
> but how do I do to transform the reques.vars.data to a object again. I
> would like to use it.
>
>
With trunk, you can do:
>>> from serializers import loads_json
>>> loads_json(request.vars.data) # convert to Python object
{"value1": "value1value!", ... }
Otherwise
from gluon.contrib impor
Hi Alan thanks for the answer...
Yes using $.post I can send a data Json string to the server. And also
using reques.vars.data I can recover that string inside the jsontest. In
order to check the transmision of data is correct, it is possible to save
that string in the myfile.txt. For the moment
>
> I trying to send un object from a view to controller (Web2py) in the same
> way that:
>
If you go to the ticket system in /appadmin, you'll probably see
a ticket with this error:
TypeError: expected a character buffer object
That's because the file object cannot write Python objects dire
3 matches
Mail list logo