Skip to main content

Zope 2 integration for zope.globalrequest

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

Overview

This package integrates zope.globalrequest with Zope 2. It is compatible with Zope 2.12 and later. In Zope 2.10, you can install ZPublisherEventsBackport to use it.

The only thing you need to do to use this package is to load its configuration from your own ZCML file:

<include package="five.globalrequest" />

You can now use zope.globalrequest as normal:

from zope.globalrequest import getRequest
request = getRequest()

The request is set up when publication starts, when the IPubStart event is fired. It is cleared on one of the IPubEnd events: IPubSuccess or IPubFailure. If you have your own event handlers for either of these events, you should be aware that the event setup/clear could happen after/ before your own event handler is executed, since the order of execution for event handlers is not controllable.

Changelog

1.0 - 2010-08-06

  • No changes

1.0a2 - 2010-01-08

  • Initial release

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

five.globalrequest-1.0.tar.gz (2.7 kB view details)

Uploaded Source

File details

Details for the file five.globalrequest-1.0.tar.gz.

File metadata

File hashes

Hashes for five.globalrequest-1.0.tar.gz
Algorithm Hash digest
SHA256 f861e68e0c2397ab84091263753964159fde7e89d19e667a632ac0e625eb5346
MD5 87f8996bd21d4aa156aa26e7d21b8744
BLAKE2b-256 d80a7517a99f29dc49dc35e46c6e1a43fddaeccb5a4c960564e58a2a97a16180

See more details on using hashes here.

Supported by

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