From ae72c6381475408d83bfcf702c8eed7d4d80c1f5 Mon Sep 17 00:00:00 2001 From: Christopher Allan Webber Date: Sun, 21 Aug 2011 00:24:47 -0500 Subject: [PATCH] Added a docstring to mgoblin_error_middleware --- mediagoblin/errormiddleware.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mediagoblin/errormiddleware.py b/mediagoblin/errormiddleware.py index 2f14fdd5..352dc891 100644 --- a/mediagoblin/errormiddleware.py +++ b/mediagoblin/errormiddleware.py @@ -49,5 +49,12 @@ MGOBLIN_ERROR_MESSAGE = """\ def mgoblin_error_middleware(app, global_conf, **kw): + """ + MediaGoblin wrapped error middleware. + + This is really just wrapping the error middleware from Paste. + It should take all of Paste's default options, so see: + http://pythonpaste.org/modules/exceptions.html + """ kw['error_message'] = MGOBLIN_ERROR_MESSAGE return make_error_middleware(app, global_conf, **kw) -- 2.25.1