Hello,
just to mention that i've tried to implement the pyjamas example in
the book, chapter 9,
http://web2py.com/book/default/chapter/09#JSONRPC-and-Pyjamas,
and i've got some errors, which i've corrected.
Some errors are typo errors, and one is of the new version of pyjamas.
So, i suggest to alter that exemple as follows, to work with the last
stable version of pyjamas 0.7.
in "views/default/todoApp.html", where is:
<meta name="pygwt:module" content="{{=URL('static','output/
todoapp')}}" />
should be:
<meta name="pygwt:module" content="{{=URL('static','output/
TodoApp')}}" />
because the original "TodoApp.py" which will be compiled to
"TodoApp.html" and not "todoapp" (lowcase)
in the same file, where is:
<script language="javascript" src="{{=URL('static','output/
pygwt.js')}}"></script>
should be:
<script language="javascript" src="{{=URL('static','output/
bootstrap.js')}}"></script>
because the initial javascript file of pyjamas is now "bootstrap.js".
Finally, in "static/TodoApp.py" (the fifth step), where is:
import pyjamas.ui.KeyboardListener
should be:
from pyjamas.ui import KeyboardListener
because the first doesn't work, and KeyboardLister is not anymore a
class in pyjamas 0.7, but a regular module
Now, with pyjamas 0.7, and web2py 1.88.2, this example works
perfectly!
Best regards,
João Ventura