summaryrefslogtreecommitdiff
path: root/docs/api/request.rst
AgeCommit message (Collapse)Author
2020-11-28namespace upgrading_auth since it's in the whatsnew docMichael Merickel
2020-10-13Rename `ISecurityPolicy.authenticated_identity` to `identity`Theron Luhn
2020-04-24Exclude duplicate members `response` and `session` from `request` module to ↵Steve Piercy
avoid Sphinx warnings: src/pyramid/request.py:docstring of pyramid.request.Request.response:1: WARNING: duplicate object description of pyramid.request.Request.response, other instance in api/request, use :noindex: for one of them src/pyramid/request.py:docstring of pyramid.request.Request.session:1: WARNING: duplicate object description of pyramid.request.Request.session, other instance in api/request, use :noindex: for one of them
2020-01-12move doc references from pyramid.security to pyramid.authorizationMichael Merickel
2020-01-09clarify the docsMichael Merickel
2020-01-09fix paradigm to avoid incorrect usagesMichael Merickel
It's almost impossible to create a decorator that works on both methods and functions, but more importantly the original approach was sharing a cache across instances of the policy. It needed to be local to the policy instance, but shared across requests. The new example demonstrates that. The cache is also much more flexible in its usage patterns now.
2020-01-08link to prMichael Merickel
2019-12-15Four spaces of indentation.Theron Luhn
2019-12-14Update docs.Theron Luhn
2019-12-14start reworking security policyÉric Araujo
2019-06-23Deprecation notices.Theron Luhn
2019-01-05stop overriding request.json_body from webobMichael Merickel
2018-11-21Keep the localizer property from showing up twice in the docsKarl O. Pinc
2018-10-03remove deprecated set_request_propertyMichael Merickel
2018-08-18Clean up code-blocks in requestSteve Piercy
2016-03-03link invoke_exception_view to api docsMichael Merickel
2015-05-28fix duplicate name resource_pathuralbash
2015-02-16add InstancePropertyHelper and apply_request_extensionsMichael Merickel
2014-08-13some tweaks to the usage of userid in the docsMichael Merickel
2014-08-12Docs: Make "userid" link to the glossary term.Karl O. Pinc
2014-08-12Docs: Make clear that a userid need not be a principal.Karl O. Pinc
2014-04-18Corrected the comment's languagethapar
2014-04-18Typo fix "not"-->"no"thapar
2014-04-17More explicit example of set_propertyflibustenet
cleanup callback has a "request" parameter (and not "_") cleanup callback know (since 1.5) if an exception occurred or not (to commit or rollback) (same as #1302 on 1.5)
2014-02-10- Garden PR #1121Steve Piercy
2013-11-09undeprecate remember/forget functions and remove ↵Chris McDonough
remember_userid/forget_userid methods from request
2013-10-30not methods, attrsChris McDonough
2013-10-28Bring change log, API docs, and deprecations in line with normal ↵Chris McDonough
policies/processes
2013-09-07- The ``pyramid.events.NewResponse`` event is now sent **after** responseChris McDonough
callbacks are executed. It previously executed before response callbacks were executed. Rationale: it's more useful to be able to inspect the response after response callbacks have done their jobs instead of before. Closes #1116.
2013-09-05remove the deprecated request.response_* attributesMichael Merickel
2013-08-29make local_name an attribute of Request, move logic from get_localizer into ↵Chris McDonough
Request.localizer, fix docs; closes #1099
2013-08-08"behavor" to "behavior"tisdall
2013-08-08changed "obect" to "object"tisdall
2013-04-07fix some cross-referencesTshepang Lekhonkhobe
2013-02-09grammarTshepang Lekhonkhobe
2013-01-29replace 'note' with the more correct 'versionadded' directiveTshepang Lekhonkhobe
2013-01-01eliminate repeated "the" wordsTshepang Lekhonkhobe
2012-09-16make use_tweens=False the defaultChris McDonough
2012-09-16make use_tweens=True the default, add some more testsChris McDonough
2012-09-16rename subrequest to invoke_subrequestChris McDonough
2012-09-16docs and testChris McDonough
2012-09-16add docsChris McDonough
2012-02-24docs-deprecate tmpl_contextChris McDonough
2012-02-17FeaturesChris McDonough
-------- - Add ``pyramid.config.Configurator.add_resource_url_adapter`` API method. See the Hooks narrative documentation section entitled "Changing How pyramid.request.Request.resource_url Generates a URL" for more information. This is not a new feature, it just provides an API for adding a resource url adapter without needing to use the ZCA API. - A new interface was added: ``pyramid.interfaces.IResourceURL``. An adapter implementing its interface can be used to override resource URL generation when ``request.resource_url`` is called. This interface replaces the now-deprecated ``pyramid.interfaces.IContextURL`` interface. - The dictionary passed to a resource's ``__resource_url__`` method (see "Overriding Resource URL Generation" in the "Resources" chapter) now contains an ``app_url`` key, representing the application URL generated during ``request.resource_url``. It represents a potentially customized URL prefix, containing potentially custom scheme, host and port information passed by the user to ``request.resource_url``. It should be used instead of ``request.application_url`` where necessary. - The ``request.resource_url`` API now accepts these arguments: ``app_url``, ``scheme``, ``host``, and ``port``. The app_url argument can be used to replace the URL prefix wholesale during url generation. The ``scheme``, ``host``, and ``port`` arguments can be used to replace the respective default values of ``request.application_url`` partially. - A new API named ``request.resource_path`` now exists. It works like ``request.resource_url`` but produces a relative URL rather than an absolute one. - The ``request.route_url`` API now accepts these arguments: ``_app_url``, ``_scheme``, ``_host``, and ``_port``. The ``_app_url`` argument can be used to replace the URL prefix wholesale during url generation. The ``_scheme``, ``_host``, and ``_port`` arguments can be used to replace the respective default values of ``request.application_url`` partially. Backwards Incompatibilities --------------------------- - The ``pyramid.interfaces.IContextURL`` interface has been deprecated. People have been instructed to use this to register a resource url adapter in the "Hooks" chapter to use to influence ``request.resource_url`` URL generation for resources found via custom traversers since Pyramid 1.0. The interface still exists and registering such an adapter still works, but this interface will be removed from the software after a few major Pyramid releases. You should replace it with an equivalent ``pyramid.interfaces.IResourceURL`` adapter, registered using the new ``pyramid.config.Configurator.add_resource_url_adapter`` API. A deprecation warning is now emitted when a ``pyramid.interfaces.IContextURL`` adapter is found when ``request.resource_url`` is called. Misc ---- - Change ``set_traverser`` API name to ``add_traverser``. Ref #438.
2012-01-11Renamed the func to callable in the docs.Michael Merickel
2011-12-30Documented Request.set_property.Michael Merickel
2011-08-20add static_path function to url and static_path method to requestChris McDonough
2011-08-20- New request methods: ``current_route_url``, ``current_route_path``.Chris McDonough
- New function in ``pyramid.url``: ``current_route_path``.
2011-07-31- A new attribute is available on request objects: ``exc_info``. Its valueChris McDonough
will be ``None`` until an exception is caught by the Pyramid router, after which it will be the result of ``sys.exc_info()``.
2011-07-24back this feature out; we'll try a different approachChris McDonough