From 04ebd572a92f6681209c70c42192775c63cd16cd Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Thu, 28 Oct 2010 22:40:16 -0400 Subject: sessioning docs --- docs/api/request.rst | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'docs/api/request.rst') diff --git a/docs/api/request.rst b/docs/api/request.rst index e53028b0f..9e851ba8d 100644 --- a/docs/api/request.rst +++ b/docs/api/request.rst @@ -85,3 +85,11 @@ of ``request.exception`` will be ``None`` within response and finished callbacks. + .. attribute:: session + + If a :term:`session factory` has been configured, this attribute + will represent the current user's :term:`session` object. If a + session factory *has not* been configured, requesting the + ``request.session`` attribute will cause a + :class:`pyramid.exceptions.ConfigurationError` to be raised. + -- cgit v1.2.3