[Cubicweb] About IPrevNextAdapters and related

St├ęphane Bugat stephane.bugat at free.fr
Mon Sep 17 12:41:43 CEST 2012


> Hi St?phane,
> 
> ITreeAdapters are usually helpful when entities can be modeled with
> parent / child relations. In your case, I would say it doesn't fit.

Poor me.

> You can have a look at the tracker[1] cube and see how the
> IPrevNextAdapter for tickets is implemented. There is a crucial
> difference in your case, though : a ticket is part of a single
> version
> whereas a person can be part of several networks.

Exactly, this is the issue I'm coping with.

> Don't know exactly what your application does, but you'd probably
> like
> to try and dive into d3.js[2] or one of its peer[3] who implement
> nice
> network visualization tools.
> 
> Adrien.
> 
> [1]
> http://hg.logilab.org/cubes/tracker/file/68ffac3d088f/views/ticket.py#l122
> [2] https://github.com/mbostock/d3/wiki/Gallery
> [3] http://selection.datavisualization.ch/

Beautiful, but a bit too complicated here... Thanks for the links anyway.

Stephane



More information about the Cubicweb mailing list