Massimo,

Your AlterEgo post is probably the best place to maintain the example
until you put it into the web2py distribution. Please take a look at
my code above however, as it handles errors according to the JSONRPC
spec. In particular, errors are not just a string in the 'error'
element of the response, but they are an error object containting
name, code, & message. The pyjamas JSONRPCExample won't work correctly
with the current AlterEgo posting if an error needs to be returned. I
think it's also important to wrap a try arountd the dispatched method
call so that you can always return valid, decodable JSON content back
to the caller.

This is a cool development for web2py & pyjamas (I just recently
started working w/ both) and it will be interesting to see what
developments come out of it. Keep up the good work on web2py, it seems
really nice to work with so far.

Chris



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to