Christophe de Vienne
christophe at unlish.com
Fri May 8 15:48:54 CEST 2015
I had a try, and face a problem.
RequestSessionBase.set_cnx() expect a ClientConnection, because if
access a ._session attribute on it.
Passing a Connection will fail.
I can redo what set_cnx does so it does not fail with a Connection, but
is having _cw.cnx as a Connection instead of a ClientConnection likely
to cause issues inside CW ?
Any advice on the matter is very welcome.
Le 08/05/2015 11:30, Christophe de Vienne a écrit :
> Hi everyone,
> In pyramid_cubicweb, request.cw_cnx is a ClientConnection.
> From what I understand, ClientConnection and Connection will be folded
> to Connection in future version (3.21 ?).
> So I am about to use Connection instead of ClientConnection: is it a
> good move ? Any advice before doing it ?
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 473 bytes
Desc: OpenPGP digital signature
More information about the Cubicweb