From 5010431320ad6ecf80224e38e41fc145faafa2fa Mon Sep 17 00:00:00 2001 From: ianb Date: Fri, 11 Nov 2005 18:51:46 +0000 Subject: Fix docstrings for pudge --- paste/flup_session.py | 4 +++- paste/profilemiddleware.py | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'paste') 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...) -- cgit v1.2.1