https://github.com/zopefoundation/zope.globalrequest
Global way of retrieving the currently active request.
https://github.com/zopefoundation/zope.globalrequest
maintained
Last synced: 8 months ago
JSON representation
Global way of retrieving the currently active request.
- Host: GitHub
- URL: https://github.com/zopefoundation/zope.globalrequest
- Owner: zopefoundation
- Created: 2013-03-02T01:43:27.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2025-09-12T07:14:10.000Z (9 months ago)
- Last Synced: 2025-09-12T08:35:30.729Z (9 months ago)
- Topics: maintained
- Language: Python
- Homepage:
- Size: 103 KB
- Stars: 2
- Watchers: 65
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGES.rst
- Contributing: CONTRIBUTING.md
Awesome Lists containing this project
README
zope.globalrequest
==================
Introduction
------------
This package provides a contextless way to retrieve the currently active request object in a zope-based web framework.
To do so you simply need to do the following::
from zope.globalrequest import getRequest
request = getRequest()
This package is mainly intended to be used with the Zope/Plone stack.
While it also works with the Zope3 framework,
the latter promotes a clean separation of concerns and the pattern of having a globally available request object is discouraged.