doc/api/pyramid/auth.rst
author Denis Laxalde <denis.laxalde@logilab.fr>
Wed, 05 Apr 2017 14:59:09 +0200
branch3.25
changeset 12146 d540defa0591
parent 11631 faf279e33298
permissions -rw-r--r--
[server] Add source_by_eid and source_by_uri methods to repository Most of the times we only need to retrieve one source (either by uri or eid) and querying sources_by_eid and sources_by_uri properties on repository just for one item is costly. So these methods query what's needed. We issue a ValueError (instead of KeyError for sources_by_{eid,uri} dict) in case the key is not found.

.. _auth_module:

:mod:`cubicweb.pyramid.auth`
----------------------------

.. automodule:: cubicweb.pyramid.auth

    .. autofunction:: includeme

    .. autoclass:: UpdateLoginTimeAuthenticationPolicy
        :show-inheritance:
        :members: