JavaScript toolkits (was Re: ANN: Porcupine Web Application Server 0.6 is released!)

lkcl luke.leighton at googlemail.com
Sat Aug 1 14:07:51 EDT 2009


On Jul 20, 4:00 pm, a... at pythoncraft.com (Aahz) wrote:
> Out of curiosity, are there anyJavaScripttoolkits

 or python-to-javascript compilers

>  that generate code
> that degrades gracefully whenJavaScriptis disabled?

 http://advogato.org/article/981.html

 you'll need to do a little bit of work - use a state-machine-based
framework (such as twisted, from what i can gather), or use fastcgi,
or solve the problem of storing the state of the pyjamas application
"in between" web requests - but yes, pyjamas-web is a port of pyjamas
to the web server.

 so, by writing an app that conforms to the pyjamas API, you get to
compile it to native javascript, to run in the web browser; you get to
run it as pure python using pyjamas-desktop (python-hulahop underneath
or pywebkitgtk) and then, if you want to finish off the experiment
that i started, you get to run the _same_ python app server-side on
behalf of the users.

 all quite quite mad, to be honest :)

 l.



More information about the Python-list mailing list