Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
witsch committed Jan 15, 2009
1 parent ebe0725 commit 5e1cd35
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/zope/globalrequest/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5e1cd35

Please sign in to comment.