Skip to main content

Global way of retrieving the currently active request.

Project description

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

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)

1.0a1 (2009-01-15)

  • Initial release [witsch]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zope_globalrequest-2.1.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zope_globalrequest-2.1-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file zope_globalrequest-2.1.tar.gz.

File metadata

  • Download URL: zope_globalrequest-2.1.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for zope_globalrequest-2.1.tar.gz
Algorithm Hash digest
SHA256 636bcc5501b28599f5308fe5646685332f64cb69c9e76be829df354217a3b676
MD5 c70c74ddaafc049f6fc352b57315bbdf
BLAKE2b-256 b1e0bfdd4643798188d251eb3bdcb799b9d4906d24bc07f6df76e7eaa7959583

See more details on using hashes here.

File details

Details for the file zope_globalrequest-2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for zope_globalrequest-2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 69025823e6b200c80ecfd3c7399b7ca7677aee3ae0a021cc9aa67819f56bbe27
MD5 d7399d6f8efd884683762bd417b8ec9b
BLAKE2b-256 e6ac333573c80529d92eb19f19a3a2acc6d014c672004daa67ae97ea1ebc27e6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page