Grykar wrote:
> I would like to ask you for simple example how to setup JSON-RPC service and
> use it to access data on MySQL database via qooXdoo GUI. All components are
> installed base on http://python.cx.hu/python-cjson and example from
> http://qooxdoo.org/documentation/0.6/user_manual/rpc/python?s=json is
> working well.
>
> Please let me know how to:
> 1. create JSON-RPC service to access MySQL database
> 2. read (insert, delete) via JSON to/from small app developed in qooXdoo
>
> For example I have table PETS in databse within two columns NAME and LEGS
>
> I cannot find this kind of example anywhere. If you are able to indicate
> even though the link to description, I will be appreciate your help
>
> Thanks
>
>
A couple of notes:
* Your problem decomposes into two issues:
1. communication of the web gui with the rpc backend
2. communication of the rpc backend with the MySQL database
* From your post I gather that you mastered issue 1.
* (Since you mention the RPC page on the qooxdoo website, I assume
that you are also familiar with qxjsonrpc
(http://python.cx.hu/qxjsonrpc/).)
* I cannot teach you issue 2. but I'm sure there are a lot of
resources on the web on how to do MySQL programming from Python.
The baseline is 'import'ing a suitable package into your Python
code, establish a database connection, and then perform the
necessary insert/update/delete operations.
That's it.
=Thomas
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel