[Cubicweb] Understanding _cw

Sylvain Thénault sylvain.thenault at logilab.fr
Fri May 16 14:46:54 CEST 2014

On 16 mai 14:33, Christophe de Vienne wrote:
> Le 16/05/2014 14:15, Sylvain Thénault a écrit :
> > Did I say something that contradict those two points? 
> No, I just wanted to be explicit to make sure we are saying the same thing.
Sounds like we are :)
> >>>> The request object could have a 'cnx' attribute.
> >>>> We could even have a 'cw' attribute on cnx, removing the need for a cw
> >>>> argument when calling appobjects.
> >>> This is not clear to me. Currently the cw is an argument mostly because of it
> >>> being the request object.
> >> Well, removing the cw argument and have it as an attribute on request
> >> would make the api more pyramid-like.
> > ok, fine. I fully agree that everything that allows cubicweb to look similar to
> > other popular framework such as pyramid is a good step forward by easing its
> > adoption. Ultimatly, having cubicweb specificities on top of a generic web
> > framework as pyramid would be awesome (IMO).
> Well, I am currently working a bit with pyramid (for which I help a
> client to build an openerp frontend, with lots form autogeneration,
> non-trivial acls, resource traversal _and_ url dispatch etc), while
> getting my hand on the cw internals thanks to the oauth and wsme cubes.
> And it strikes me everytime how similar the two frameworks are in some
> areas, which are the ones CW has little added value (I have in mind the
> http request handling & dispatch, url resolver, authentication,
> interface with controllers, source scan for registering objects, auto
> reload...).
> The things CW is good at (rql, hooks, orm & views) could totally fit on
> top of these basic features.

You get me.

> I pretty convinced that pyramid could be the base of cw, and that a
> progressive path exists to get there.
> I want to experiment around this idea and be able to really demonstrate
> the feasibility before putting it forward too much, but if someone is
> interested to dig this subject with me you are very welcome to!

I'm definitly interested but unfortunatly lack time to really help in an other
way than responding to emails on the mailing list. But if the path to reach this
becomes clearer, we may find some resources at Logilab to help.

Sylvain Thénault, LOGILAB, Paris ( - Toulouse (
Formations Python, Debian, Méth. Agiles: http://www.logilab.fr/formations
Développement logiciel sur mesure:       http://www.logilab.fr/services
CubicWeb, the semantic web framework:    http://www.cubicweb.org

More information about the Cubicweb mailing list