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

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-1.6.tar.gz (6.7 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-1.6-py2.py3-none-any.whl (5.7 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: zope.globalrequest-1.6.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.14

File hashes

Hashes for zope.globalrequest-1.6.tar.gz
Algorithm Hash digest
SHA256 c465c8e9da133c8f6384184b11221b8145452c6166e17206a5387e336c61f1f3
MD5 fbaba6eb522e53174e7e6bec66270f5e
BLAKE2b-256 6661218bb2764b6d23c09a08770765e82f3f11f18bbc7f70cae05b12dab3036c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for zope.globalrequest-1.6-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 22bae4d94978b99ce7fb927d87f330adc2be340cf327834f8dad5a8f37568551
MD5 4ba56cb00e358dce10277c35258c19d3
BLAKE2b-256 087c9684a0dc9ef2244a51af783911ed8505ae59a898c8309e6d3742915c5be6

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