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 Zope2/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.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.4.tar.gz (3.9 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.4-py2.py3-none-any.whl (7.8 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

File hashes

Hashes for zope.globalrequest-1.4.tar.gz
Algorithm Hash digest
SHA256 cc5f63c94cd6c20a610997edf387f2a166e0e97590f49a040dc8ea4ee4445148
MD5 5c1ce6c7f0eb5003c50825b775cf72c9
BLAKE2b-256 93535a41c33cfe1b06823286fab1766d79f2be1528c63ead2ea7e215e57e7a1b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for zope.globalrequest-1.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 17711940e9ccde92bacca0f9cb80af2e411043c93f092d45c35cbe4ed7315b0f
MD5 f57def9529fd3f19f196c25ded4eac4a
BLAKE2b-256 04399e49f4a6de6c684a2bfa115b9236ecc2a4a8b706f36b386113608c425825

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