docs/api/tools.rst
author Denis Laxalde <denis@laxalde.org>
Wed, 29 Apr 2015 22:46:17 +0200
changeset 11575 97110b4af42f
parent 11551 444cd2bba89d
permissions -rw-r--r--
Handle absence of anonymous user Set cw_session and then cw_cnx request attributes to None in case anonymous connection is not allowed (i.e. no "anon" user in config). Then catch AuthenticationError in CubicWebPyramidHandler and return the 'login' view. Closes #4751862.

.. _tools_module:

:mod:`pyramid_cubicweb.tools`
----------------------------

.. automodule:: pyramid_cubicweb.tools

    .. autofunction:: includeme

    .. autofunction:: clone_user
    .. autofunction:: cnx_attach_entity
    .. autofunction:: cached_build_user
    .. autofunction:: clear_cache