[Cubicweb] commit and rollback on rqlcontroller

Jinpeng Li mr.li.jinpeng at gmail.com
Fri Jun 13 14:55:55 CEST 2014


On Fri, Jun 13, 2014 at 12:28 PM, Julien Cristau <julien.cristau at logilab.fr>
wrote:

> On Fri, Jun 13, 2014 at 12:18:52 +0200, Jinpeng Li wrote:
>
> > Dear all,
> >
> > Yesterday I worked with Yann for the indexation on database and we have
> > some feedback on rqlcontroller. When we insert an entity
> > with rqlcontroller, the mandatory relations of this entity should be
> > inserted as well, otherwise I will get error. It means each post already
> > commit, or rollback when it fails.
>
> Yes, anything else would be madness.
>
> > Maybe cubicweb team needs to make it
> > stateless since it is RESTful Web services.
> >
> I don't understand what you mean here.
>

Hi Julien,

Thanks for the quick reply.

I am wrong here.

Here, I would like to just repeat the same thing that the sever does commit
for each http request (rqls). Each request is independent (stateless).

Best,
Jinpeng


> Cheers,
> Julien
> --
> Julien Cristau          <julien.cristau at logilab.fr>
> Logilab                 http://www.logilab.fr/
> Informatique scientifique & gestion de connaissances
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cubicweb.org/pipermail/cubicweb/attachments/20140613/3409ca9a/attachment.html>


More information about the Cubicweb mailing list