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

Christophe de Vienne christophe at unlish.com
Wed Aug 6 12:29:05 CEST 2014


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.

Such a thing would be implementable by hacking a little into the 
registry, or by just trying all known view_name with the current rset 
and filter out the ones that fails the lookup.


Christophe



More information about the Cubicweb mailing list