doc/api/pyramid/tools.rst
author Sylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 18 Nov 2016 17:50:56 +0100
changeset 11891 67185e65f020
parent 11631 faf279e33298
child 11930 83a921bae21c
permissions -rw-r--r--
[entity/optimization] Cache rset when entity.related is called with entities=False If fail to see why we couldn't cache in this case, while this is important for optimization reason: when doing a single HTTP request, some queries are done two or three times because of predicates / uicfg or alike. Also always store tuple and not list in the cache, because: * else we get some regression * and inconsistent result type (tuple or list) * and it simply feels better to cache an unmutable object.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
11551
444cd2bba89d [doc] Document tools
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
     1
.. _tools_module:
444cd2bba89d [doc] Document tools
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
     2
11631
faf279e33298 Merge with pyramid-cubicweb
Yann Voté <yann.vote@logilab.fr>
parents: 11551
diff changeset
     3
:mod:`cubicweb.pyramid.tools`
11551
444cd2bba89d [doc] Document tools
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
     4
----------------------------
444cd2bba89d [doc] Document tools
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
     5
11631
faf279e33298 Merge with pyramid-cubicweb
Yann Voté <yann.vote@logilab.fr>
parents: 11551
diff changeset
     6
.. automodule:: cubicweb.pyramid.tools
11551
444cd2bba89d [doc] Document tools
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
     7
444cd2bba89d [doc] Document tools
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
     8
    .. autofunction:: includeme
444cd2bba89d [doc] Document tools
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
     9
444cd2bba89d [doc] Document tools
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    10
    .. autofunction:: clone_user
444cd2bba89d [doc] Document tools
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    11
    .. autofunction:: cnx_attach_entity
444cd2bba89d [doc] Document tools
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    12
    .. autofunction:: cached_build_user
444cd2bba89d [doc] Document tools
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    13
    .. autofunction:: clear_cache