ANN: PGR - Simple GWT and Google App Engine integration without JSON

2 views
Skip to first unread message

majo

unread,
May 7, 2008, 4:11:17 AM5/7/08
to Google Web Toolkit
Look at:

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

This is simple small library, for use both GWT and GAE technologies
together. By use this library you can write GWT services in Python
language, with full support of transfer primitive types, custom object
types and exceptions objects, with full type translation, without
using json.

Peter Blazejewicz

unread,
May 8, 2008, 7:20:11 PM5/8/08
to Google Web Toolkit
thanks man :)
regards,
Peter

Rodrigo

unread,
May 15, 2008, 6:39:56 PM5/15/08
to Google Web Toolkit
Total newbie problem (perhaps), I created the necessary Python side
code for my app using the sympatico/pgr library.

I'm getting the following error when running dev_appengine.py:

raise _PGRException(_PGRException.__err_msg__["package_not_found"]
%(name))
_PGRException: Can't find package (module) 'java.lang'

I added some debug code to pgr.py and it is looking for the type
java.lang.String (one of my GWT / RPC parameters).

Any ideas on what I'm doing wrong (setup / path issue)?

Thanks,

majo

unread,
May 21, 2008, 5:17:02 PM5/21/08
to Google Web Toolkit
Please send me your code, I look and tell you what is wrong, maybe
this is bug in pgr.
Message has been deleted

Pavel Byles

unread,
Jun 1, 2008, 10:51:45 PM6/1/08
to Google-We...@googlegroups.com
This looks great. Good job.

I have a few questions tho:
1. My app's server side implementation returns data structures that I don't see in PGR (HashMap esp).  Is there a plan to implement the rest of Java's data structures?
2. Also, maybe I'm missing something and didn't quite understand-- for data types that are shared between the server and the client in GWT, exactly how do I manage them. Eg:
class Pet {
public int myPetNum;
public int ownerNum;
Pet() {}
}
Is there a way to return a Pet obj?
3. Is there a way to run and test this locally rather than uploading stuff? (accessing the datastore from my local machine)

-Pavel

majo

unread,
Jun 2, 2008, 3:57:35 AM6/2/08
to Google Web Toolkit
Hello Pavel

Ad. 1
Now we only support for arrays, but in future we plan map some
specified java object to python objects, eg.: Map interfacre to 'dict'
and List/Set interface to 'list'. But now we are working on ....
generator. All needed python stuff (services interfaces, vo objects)
will be generated.

Ad. 2
As we write on project page the object should be rewrite in python as
this:
eg

class Pet:
__serialization__ = {
"myPetNum": pgr.GwtRpcTypes.INT,
"ownerNum": pgr.GwtRpcTypes.INT
}

__serialization__ property is a dict with serialization description
for gwt server side infrastructure.

Ad. 3
As in standard python apps for GAE you should download App Engine SDK,
the datastore is locally, there is now way to communicate with
production server from local enviroment from your source

Pawel

Pavel Byles

unread,
Jun 2, 2008, 12:14:59 PM6/2/08
to Google-We...@googlegroups.com
Thanx.
Reply all
Reply to author
Forward
0 new messages