[Cubicweb] Thoughts on RESTfulness and rqlcontroller

Christophe de Vienne christophe at unlish.com
Tue Jan 27 14:14:44 CET 2015

Le 27/01/2015 14:02, Nicolas Chauvat a écrit :
> On Tue, Jan 27, 2015 at 12:34:00PM +0100, Christophe de Vienne wrote:
>> I made a small doc for the cubicweb-wsme cube, that explains a little
>> more how it works.
>> http://cubicweb-wsme.readthedocs.org/en/latest/
> Nice!
> I will take a look and see if I use it in the (cubic)webcomponent I
> have been developing this week:
>      http://hg.logilab.org/users/nchauvat/webcomponents/xcwdiv/
> Example of use:
>    <div data-cw_baseurl="%(baseurl)s"
>         data-cw_rql="%(rql)s"
>         data-js_view="%(view)s">
>    </div>
> To write the views in js, I will need to GET the data, either via
> cwclientlib+rqlcontroller or via XMLHttpRequest+wsme.
> Is it plain XMLHttpRequest that you use on the client side or some
> other library?

On the client-side we use Backbone collections and models, which we
customized a little to support nested entities update more easily.

But out of the box it works pretty well.

I guess we could make these tweaks opensource, if someone is interested
(we did not for lack of time only).


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <http://lists.cubicweb.org/pipermail/cubicweb/attachments/20150127/36e39526/attachment-0273.sig>

More information about the Cubicweb mailing list