docs/api/tools.rst
author Christophe de Vienne <christophe@unlish.com>
Wed, 28 Jan 2015 00:00:05 +0100
changeset 11553 a322a02ca301
parent 11551 444cd2bba89d
permissions -rw-r--r--
[core] Protect session data from unwanted loading. Use specialised Session and Connection types that forward their 'data' and 'session_data' attributes to the pyramid request.session attribute. This forwarding is done with properties, instead of copying a reference, which allow to access request.session (and the session factory) if and only if Session.data or Connection.session_data is accessed. In some cases, most notably the static resources requests, it can mean no access the session during the request handling, which saves a request to the session persistence layer. Closes #4891437
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
444cd2bba89d [doc] Document tools
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
     3
:mod:`pyramid_cubicweb.tools`
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
444cd2bba89d [doc] Document tools
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
     6
.. automodule:: pyramid_cubicweb.tools
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