views:

1539

answers:

4

I realize this is a dated question since appengine now comes in java, but I have a python appengine app that I want to access via GWT. Python is just better for server-side text processing (using pyparsing of course!). I have tried to interpret GWT's client-side RPC and that is convoluted since there is no python counterpart (python-gwt-rpc is out of date). I just tried using JSON and RequestBuilder, but that fails when using SSL. Does anyone have a good solution for putting a GWT frontend on a python appengine app?

+1  A: 

The only alternative (if you can call it that) that I'm familiar with is Pyjamas. Obviously, this is more of a GWT replacement than a GWT-RPC replacement. Beyond that, I think you would be stuck with writing your own communications layer using some sort of REST-type protocol.

jsight
As for pyjamas - I like them a lot and I'm all for the idea. I'm about 100x faster in python than java, but gwt feels like a much more robust framework. Although I've already found some ie compatibility issues (it is not 100% cross-browser compatible - see gwt issue #3899), gwt works *very* well and is incredibly fast. It is clear that googlers have put a bunch of quality time into this app. I was having some issues getting pyjamas to do basic tasks.Any more suggestions or ideas? If I can get the RequestBuilder issue solved in SSL, that would be a *great* solution. I'd use only JSON.
I've had good experiences using pyjamas (pyjs.org). Queries at groups.google.com/group/pyjamas-dev/ are responded to accurately and quickly. A lot of GWT's documentation can be applied and reading the source code can be a help at times too.
Carl
A: 

You can maybe have a look at the GWT JSON RPC example.

If that fails, there are always several XML parser implementations in Python AND Java :)

Sorin Mocanu
A: 

I agree with your evaluation of Python's text processing and GWT's quality. Have you considered using Jython? Googling "pyparsing jython" gives some mixed reviews, but it seems there has been some success with recent versions of Jython.

Glenn
A: 

Hi, I know I am late to this question...

Have you seen this project?

http://code.google.com/p/python-gwt-rpc/

It might be useful as a starting point.

Mark Ellul