[BangPypers] how to pass the object to the Controller?

Parthan SR parth.technofreak at gmail.com
Wed Mar 4 06:15:28 CET 2009

Sibtey Mehdi wrote:
> Hi All
>         I have one wxPython application and want to make it 
> *turbogears* enabled, on some event
>         I am creating an object and this object I need to pass to the 
> controller. I will use the object to
>         Generate the web page, earlier I was passing this object 
> directly to the mako template and
>         creating the html report.
>         How I will pass the object to the controller or is there 
> anyway to communicate between wxpythonApp
>         and controller.
You basically need your turbogears app to keep running in a way it is 
accessible to external programs. Then you can make your wxPython app 
access your controller by calling the method(s) provided by the 
controller. It slightly varies depending upon whether you turbogears app 
is also running locally where your wxPython app exists or is running on 
a remote server. You can pass around the object as a JSON object from 
your app to the controller, encode it at your desktop app and decode it 
back in your controller.

With Regards,
Parthan SR "technofreak"

GPG Key     2FF01026
Fingerprint 5707 ECBD 8D8D 8E6E 28F8  DFA5 938B D861 2FF0 1026
Weblog      http://blog.technofreak.in

More information about the BangPypers mailing list