On Tue, 2012-11-06 at 10:56 -0800, rafamachadoalves wrote:
> Hi Jim
> 
> 
> I have to save application state in a file. What do you indicate?
> 
No web server? How do you plan to run your application? If it is pyjd
(running directly in python), just serialize your data, open a file and
write it. 

It it is pyjs, compiled to javascript, running in a web browser, then
the rules for javascript web security apply, and writing files is not
allowed. 
> 
The middle ground, if it is allowed by the project, would be to use
HTML5 Web Storage; it stores into a database inside the web browser. I
do not see anything in the pyjs distribution that uses the feature, but
it should be fairly easy to implement.

- Jim



> I will implement the solution with a web server, but first I have to
> implement a solution without a web server, for specificity reasons of
> my project. In the future I will have the two solutions.
> 
> 
> Thanks, []
> 
> Em sexta-feira, 2 de novembro de 2012 20h42min45s UTC-2, Jim
> Washington escreveu:
>         On Fri, 2012-11-02 at 14:04 -0700, Luis wrote: 
>         > What are best practice for sending Json messages? 
>         
>         Luis, I hope I answered your questions in my response to Rafa.
>         If you 
>         have further questions, let me know. 
>         
>         - Jim Washington 
>         
>         > 
>         
> 
> -- 
>  
>  
>  


-- 



Reply via email to