Metadata-Version: 2.4
Name: zope.globalrequest
Version: 3.0
Summary: Global way of retrieving the currently active request.
Home-page: https://github.com/zopefoundation/zope.globalrequest
Author: Zope Foundation and Contributors
Author-email: zope-dev@zope.dev
License: ZPL
Project-URL: Issue Tracker, https://github.com/zopefoundation/zope.globalrequest/issues
Project-URL: Sources, https://github.com/zopefoundation/zope.globalrequest
Keywords: zope request global
Platform: Any
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Web Environment
Classifier: Framework :: Plone
Classifier: Framework :: Zope :: 3
Classifier: Framework :: Zope :: 5
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: System Administrators
Classifier: Intended Audience :: Other Audience
Classifier: License :: OSI Approved :: Zope Public License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: Implementation :: CPython
Requires-Python: >=3.9
Requires-Dist: setuptools
Requires-Dist: zope.interface
Requires-Dist: zope.publisher
Requires-Dist: zope.traversing
Provides-Extra: test
Requires-Dist: zope.testrunner>=6.4; extra == "test"
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: home-page
Dynamic: keywords
Dynamic: license
Dynamic: platform
Dynamic: project-url
Dynamic: provides-extra
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary



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.

Changelog
=========

3.0 (2025-09-12)
----------------

- Replace ``pkg_resources`` namespace with PEP 420 native namespace.


2.1 (2025-09-04)
----------------

- Add support for Python 3.12, 3.13.

- Drop support for Python 3.7, 3.8.


2.0 (2023-03-27)
----------------

- Drop support for Python 2.7, 3.5, 3.6.

- Mention Python 3.11 support in trove classifiers.


1.6 (2022-10-18)
----------------

- Add support for Python 3.8, 3.9, 3.10 and 3.11

- Drop support for Python 3.4.


1.5 (2018-10-04)
----------------

- Add support for Python 3.7.


1.4 (2017-05-29)
----------------

- Turn functional tests into better covering unit tests and also add more tests.
  This removes test dependencies on unrelated packages.


1.3 (2016-10-22)
----------------

- Python 3 compatibility.


1.2 (2016-06-07)
----------------

- Lighten test dependencies by using neither `zope.app.testing` nor
  `zope.app.zcmlfiles` any longer.


1.1 (2015-04-29)
----------------

- Fix import locations and declare all dependencies.
  [thet]


1.0 (2010-08-07)
----------------

- Fix test setup regarding `zope.securitypolicy`.
  [ldr]


1.0a2 (2009-01-17)
------------------

- Update documentation to clarify the intentions of this package.  Also see
  http://thread.gmane.org/gmane.comp.web.zope.devel/18023 for more information.
  [witsch]


1.0a1 (2009-01-15)
------------------

- Initial release
  [witsch]
