debian/python-cubicweb-documentation.doc-base
author Sylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 18 Nov 2016 18:15:14 +0100
changeset 11858 b2ceb483e056
parent 11832 e8be49ecb522
child 12703 10ff72a0e428
permissions -rw-r--r--
[views/optimization] Makes has_editable_relations predicate less costly by using generator The `has_editable_relations` predicate is used to say if the 'modify' action should appear. To do so, it checks if anything is editable (ie. something in the attributes, relations or inlined section of the automatic form). This may be costly since it may have to check several permissions. To optimize this a bit, this cset turns list into generator so that we'll avoid unnecessary work as soon as we find a match.

Document: cubicweb-doc
Title: CubicWeb Documentation
Author: Logilab
Abstract: Some base documentation for CubicWeb users and developpers
Section: Apps/Programming

Format: HTML
Index: /usr/share/doc/python-cubicweb-documentation/html/index.html
Files: /usr/share/doc/python-cubicweb-documentation/html/*