Joachim Schmitz wrote:
hi,
is there any work going on to work with json or json-rpc ?
http://json-rpc.org
In the zope3 version of cpsskins yes. It is useful if you need to
transfer datastructures (list, dictionaries, list of dictionaries, ..).
Otherwise you may just as well transfer text strings (for rendering
HTML, for getting a return value).
I moved away from json-rpc though, since it requires the installation of
extra products (e.g. jsonserver, jsolait). jsolait is not compatible
with prototype.js because of the extension of the 'Class' object.
what json-rpc gives you is the serialization / unserialization of the
data. Doing JSON over HTTP (post) only requires a few extra lines of code.
you'll need for instance:
- minjson.py (serializer-unserializer in python)
- json.js (serializer-unserializer in javascript)
here is an example:
http://svn.z3lab.org/trac/z3lab/file/cpsskins/branches/jmo-perspectives/ui/default/filters/style/style_editor.js
http://svn.z3lab.org/trac/z3lab/file/cpsskins/branches/jmo-perspectives/ui/default/filters/style/views.py
/JM
_______________________________________________
cps-devel mailing list
http://lists.nuxeo.com/mailman/listinfo/cps-devel