request

These method gets added to each pyramid.request.Request object.

pyramid_fullauth.request.login_perform(request, user, location=None, remember_me=False)[source]

Perform login action.

Parameters:
Returns:

redirect exception

Return type:

pyramid.httpexceptions.HTTPSeeOther

pyramid_fullauth.request.logout(request)[source]

Log user out.

Parameters:request (pyramid.request.Request) – a request object
pyramid_fullauth.request.user(request)[source]

Return user object.

When called for the first time, it queries for user, which is later available as a pure property overriding this method. See pyramid_fullauth.includeme() for logic behind property.

Returns:logged in user object, or None
Return type:pyramid_fullauth.models.User