[Baypiggies] Suggestions on some python client/server development.

Keith Dart keith at dartworks.biz
Tue Nov 23 21:44:29 CET 2010


=== On Tue, 11/23, William Deegan wrote: ===
> I've not done anything like this in python yet, so I figured I'd float
> it out to the group for some suggestions on where to start and/or
> which technologies/packages might be useful to avoid just replicating
> exactly the c++ code..

===

Well, there are many options. But the way I'd probably do it is use
Javascript XHR on the browser side to fetch the data from the server.
The server for that data just serves JSON serialized data so it's
lightweight and fast. 

One example of this is here:

http://mochi.github.com/mochikit/examples/ajax_tables/index.html

The backend can be twisted, with simplejson. 

I also have a proxy object already written that makes the JSON
serialization transparent. 

Server side:
http://code.google.com/p/pycopia/source/browse/trunk/WWW/pycopia/WWW/json.py

Client side:
http://code.google.com/p/pycopia/source/browse/trunk/WWW/media/js/proxy.js

It's part of the pycopia-WWW web application framework.



-- Keith Dart

-- 

-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   Keith Dart <keith at dartworks.biz>
   public key: ID: 19017044
   <http://www.dartworks.biz/>
   =====================================================================


More information about the Baypiggies mailing list