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