summaryrefslogtreecommitdiff
path: root/docs/api
diff options
context:
space:
mode:
authorBen Bangert <ben@groovie.org>2010-10-28 19:58:38 -0700
committerBen Bangert <ben@groovie.org>2010-10-28 19:58:38 -0700
commitd39e99e1f6f06a02a275a8a30f154e0f292d7dff (patch)
tree24a85615dce8ba575c73aae1189ea5846303ae70 /docs/api
parent6a9d6246c9e9fda507fa04b462c00509b73f676f (diff)
parent04ebd572a92f6681209c70c42192775c63cd16cd (diff)
downloadpyramid-d39e99e1f6f06a02a275a8a30f154e0f292d7dff.tar.gz
pyramid-d39e99e1f6f06a02a275a8a30f154e0f292d7dff.tar.bz2
pyramid-d39e99e1f6f06a02a275a8a30f154e0f292d7dff.zip
Merge branch 'master' of github.com:Pylons/pyramid
Diffstat (limited to 'docs/api')
-rw-r--r--docs/api/configuration.rst4
-rw-r--r--docs/api/interfaces.rst4
-rw-r--r--docs/api/request.rst8
-rw-r--r--docs/api/session.rst9
4 files changed, 24 insertions, 1 deletions
diff --git a/docs/api/configuration.rst b/docs/api/configuration.rst
index 5215bfb3c..6d5c9f16b 100644
--- a/docs/api/configuration.rst
+++ b/docs/api/configuration.rst
@@ -5,7 +5,7 @@
.. automodule:: pyramid.configuration
- .. autoclass:: Configurator(registry=None, package=None, settings=None, root_factory=None, authentication_policy=None, authorization_policy=None, renderers=DEFAULT_RENDERERS, debug_logger=None, locale_negotiator=None, request_factory=None, renderer_globals_factory=None, default_permission=None)
+ .. autoclass:: Configurator(registry=None, package=None, settings=None, root_factory=None, authentication_policy=None, authorization_policy=None, renderers=DEFAULT_RENDERERS, debug_logger=None, locale_negotiator=None, request_factory=None, renderer_globals_factory=None, default_permission=None, session_factory=None)
.. attribute:: registry
@@ -64,6 +64,8 @@
.. automethod:: set_default_permission
+ .. automethod:: set_session_factory
+
.. automethod:: set_request_factory
.. automethod:: set_renderer_globals_factory
diff --git a/docs/api/interfaces.rst b/docs/api/interfaces.rst
index 7193fd11b..2bf55474e 100644
--- a/docs/api/interfaces.rst
+++ b/docs/api/interfaces.rst
@@ -25,3 +25,7 @@ Other Interfaces
.. autointerface:: IRoutePregenerator
+ .. autointerface:: ISession
+
+ .. autointerface:: ISessionFactory
+
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.
+
diff --git a/docs/api/session.rst b/docs/api/session.rst
new file mode 100644
index 000000000..daed9fc33
--- /dev/null
+++ b/docs/api/session.rst
@@ -0,0 +1,9 @@
+.. _session_module:
+
+:mod:`pyramid.session`
+---------------------------
+
+.. automodule:: pyramid.session
+
+ .. autofunction:: InsecureCookieSessionFactoryConfig
+