From: Christopher Allan Webber Date: Sun, 21 Aug 2011 05:24:47 +0000 (-0500) Subject: Added a docstring to mgoblin_error_middleware X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=ae72c6381475408d83bfcf702c8eed7d4d80c1f5;p=mediagoblin.git Added a docstring to mgoblin_error_middleware --- 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)