summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorianb <devnull@localhost>2005-11-11 18:51:46 +0000
committerianb <devnull@localhost>2005-11-11 18:51:46 +0000
commit5010431320ad6ecf80224e38e41fc145faafa2fa (patch)
tree6a10ca3695c48fb87f4d3afef1921953194e52f5
parent32bf96f3f4a78f50e33bf8a6872108bec166e63b (diff)
downloadpaste-5010431320ad6ecf80224e38e41fc145faafa2fa.tar.gz
Fix docstrings for pudge
-rw-r--r--docs/testing-applications.txt7
-rw-r--r--paste/flup_session.py4
-rw-r--r--paste/profilemiddleware.py4
3 files changed, 11 insertions, 4 deletions
diff --git a/docs/testing-applications.txt b/docs/testing-applications.txt
index af9e111..71dd4d9 100644
--- a/docs/testing-applications.txt
+++ b/docs/testing-applications.txt
@@ -117,9 +117,8 @@ The response object:
``str(res)``:
Gives a slightly-compacted version of the response.
-``click(description=None, linkid=None, href=None, anchor=None,
- index=None, verbose=False)``: Clicks the described link (`see
- docstring for more
+``click(description=None, linkid=None, href=None, anchor=None, index=None, verbose=False)``:
+ Clicks the described link (`see docstring for more
<./class-paste.fixture.TestResponse.html#click>`_)
``forms``:
@@ -142,6 +141,8 @@ Request objects:
Form Submissions
================
+*New in svn trunk*
+
You can fill out and submit forms from your tests. First you get the
form::
diff --git a/paste/flup_session.py b/paste/flup_session.py
index a3074d6..eab7c73 100644
--- a/paste/flup_session.py
+++ b/paste/flup_session.py
@@ -2,7 +2,9 @@
# Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
"""
-Creates a session object; then in your application, use::
+Creates a session object.
+
+In your application, use::
environ['paste.flup_session_service'].session
diff --git a/paste/profilemiddleware.py b/paste/profilemiddleware.py
index 64fa5ea..43d8dca 100644
--- a/paste/profilemiddleware.py
+++ b/paste/profilemiddleware.py
@@ -16,6 +16,8 @@ __all__ = ['ProfileMiddleware', 'profile_decorator']
class ProfileMiddleware(object):
"""
+ Middleware that profiles all requests.
+
You can enable this middleware by adding this to your
configuration::
@@ -91,6 +93,8 @@ def capture_output(func, *args, **kw):
def profile_decorator(**options):
"""
+ Profile a single function call.
+
Used around a function, like::
@profile_decorator(options...)