CHANGES.txt | ●●●●● patch | view | raw | blame | history | |
docs/whatsnew-1.3.rst | ●●●●● patch | view | raw | blame | history |
CHANGES.txt
@@ -1,3 +1,15 @@ Unreleased ========== Features -------- - New API: ``pyramid.request.Request.set_property``. Add lazy property descriptors to a request without changing the request factory. New properties may be reified, effectively caching the value for the lifetime of the instance. Common use-cases for this would be to get a database connection for the request or identify the current user. 1.3a3 (2011-12-21) ================== docs/whatsnew-1.3.rst
@@ -206,6 +206,16 @@ See :ref:`view_defaults` for more information. Extending a Request without Subclassing ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ It is now possible to extend a :class:`pyramid.request.Request` object with property descriptors without having to create a subclass via :meth:`pyramid.request.Request.set_property`. New properties may be reified, effectively caching the value for the lifetime of the instance. Common use-cases for this would be to get a database connection for the request or identify the current user. Minor Feature Additions -----------------------