[Cubicweb] determine if an entity is part of a composite

Sylvain Thénault sylvain.thenault at logilab.fr
Mon Dec 21 11:28:53 CET 2009

On 18 décembre 20:27, Aurélien Campeas wrote:
> Hello,
> Maybe I'm just dense or too tired but I do not find a way to determine
> if a specific entity is part of a composite. One use case is to
> automatically derive: 
> * what to link to a creation time
> * the parent entity (for breadcrumbs)

all we've currently is .e_schema.is_subobject which will return True/False.

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