From 5e1cd35bd2961565b5540440fa6bfe7b030d8f55 Mon Sep 17 00:00:00 2001 From: Andreas Zeidler Date: Thu, 15 Jan 2009 16:10:35 +0000 Subject: [PATCH] update readme --- src/zope/globalrequest/README.txt | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/zope/globalrequest/README.txt b/src/zope/globalrequest/README.txt index a002327..8209e38 100644 --- a/src/zope/globalrequest/README.txt +++ b/src/zope/globalrequest/README.txt @@ -5,12 +5,19 @@ Introduction ------------ This package provides a global way to retrieve the currently active request -object in a zope-based web framework. +object in a zope-based web framework. To do so you simply need to do the +following:: + + from zope.globalrequest import getRequest + request = getRequest() Functional Tests ---------------- +The remainder of this file contains functional tests to demonstrate that the +package works as intended. + First we make sure our test view works: >>> from zope.testbrowser.testing import Browser