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.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.0.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

zope.globalrequest-2.0-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file zope.globalrequest-2.0.tar.gz.

File metadata

  • Download URL: zope.globalrequest-2.0.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for zope.globalrequest-2.0.tar.gz
Algorithm Hash digest
SHA256 2b1f4b2ec549c7baf381b0882be58569c327ec2171d1b0aa0f4c7b23630836ab
MD5 9c1fea63bf9b1be18987f46a7050963d
BLAKE2b-256 103aae324d6de3cb543f21d94b635b0344db09ad4e531e7e33b4c88e5a2e18cf

See more details on using hashes here.

File details

Details for the file zope.globalrequest-2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for zope.globalrequest-2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 372fdb35188377a4b41b767fe5d103c0bed97e9e3f37c64d56c238a919fa1819
MD5 4328acf343b8743984a1ac585148c68f
BLAKE2b-256 fa686b21fd5c6f0f84d3e99e2c782159328ea4a4ee26eacd58e39ce9d2ff177c

See more details on using hashes here.

Supported by

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