[Cubicweb] problem with PrimaryView.skip_none

Sylvain Thénault sylvain.thenault at logilab.fr
Mon Dec 5 10:06:10 CET 2011

On 16 novembre 21:46, Alexandre Fayolle wrote:
> Hello,
> Unless I'm mistaken, the skip_none attribute on PrimaryView does not work as 
> advertised. It is True by default, yet I see many attributes with None values 
> in primary views. 
> The code in primary.py shows that the value which is tested is the result of a 
> view, so the test is not correctly written. I'm not sure what the best course 
> is for this:
> * remove skip_none altogether
> * make it default to False and change the logic (in order to not break 
> existing apps depending on this feature)

IMO skip_none feature could be removed.
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