You are here: Home / LBN / Up2date / Plone and Zope / BastionLinux 25 / five.globalrequest-1.0-3.lbn25.noarch

five.globalrequest-1.0-3.lbn25.noarch

Package Attributes
RPM  five.globalrequest-1.0-3.lbn25.noarch.rpm Architecture  noarch Size  7123 Created  2023/06/18 04:04:38 UTC
Package Specification
Summary Zope 2 integration for zope.globalrequest
Group Application/Internet
License ZPL
Home Page http://pypi.python.org/packages/source/f/five.globalrequest/five.globalrequest-1.0.tar.gz
Description

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:

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.

Requires
python  
rpmlib(FileDigests)  
/bin/sh  
rpmlib(CompressedFileNames)  
rpmlib(PayloadFilesHavePrefix)  
five  
rpmlib(PartialHardlinkSets)  
rpmlib(PayloadIsXz)  
Provides
five.globalrequest
python2.7dist(five.globalrequest)
python2dist(five.globalrequest)
Obsoletes
five.globalrequest-egginfo

Document Actions