[Cubicweb] Selecting multiple views [Was: Integrating CubicWeb views into Pyramid (long)]

Sylvain Thénault sylvain.thenault at logilab.fr
Tue Aug 26 17:07:17 CEST 2014


On 06 août 12:29, Christophe de Vienne wrote:
> 
> Le 06/08/2014 12:19, Nicolas Chauvat a écrit :
> >On Wed, Aug 06, 2014 at 11:39:38AM +0200, Christophe de Vienne wrote:
> >>and the goal is always to select one view (and again, I talk only
> >>for the views, not the other appobjects).
> >Except maybe when the user interface is trying to display the list of
> >views that could be applied to the current resulset.
> >
> >An example would be the "possible views" side box and its method
> >init_rendering at
> >http://hg.logilab.org/master/cubicweb/file/aee99876eb10/web/views/boxes.py#l167
> 
> Indeed, except in this case it is not views that are selected, but
> view names.

The main point is that cw's registry have different API for those different
purpose:

* select the best view (given a regid)
* get all possible views (the best for every possible regid)


-- 
Sylvain Thénault, LOGILAB, Paris (01.45.32.03.12) - Toulouse (05.62.17.16.42)
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