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

Uploaded Source

File details

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

File metadata

  • Download URL: zope.globalrequest-1.5.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.10.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.19.7 CPython/2.7.15

File hashes

Hashes for zope.globalrequest-1.5.tar.gz
Algorithm Hash digest
SHA256 12ea106410f4ad76fdef862661f6a49a7feeed335fe0c373edc6afce564e583e
MD5 6d19fba0673dcbe5bac76200393c9561
BLAKE2b-256 395e9b5a3c66aa3fa2d6e4e1ff1b661162778bed0a776a0bcc5353f0ece2749a

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