changeset 4296:d8132a6036f2

make_application: add docstring
author Florian Krupicka <florian.krupicka@googlemail.com>
date Sun, 10 Aug 2008 20:01:33 +0200
parents 7b81f1a6e8e5
children 57325e120b5b
files MoinMoin/web/serving.py
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/web/serving.py	Sun Aug 10 19:46:18 2008 +0200
+++ b/MoinMoin/web/serving.py	Sun Aug 10 20:01:33 2008 +0200
@@ -63,6 +63,15 @@
         return self.app(environ, start_response)
 
 def make_application(shared=None, trusted_proxies=None):
+    """
+    Make an instance of the MoinMoin WSGI application. This involves
+    wrapping it in middlewares as needed (static files, debugging, etc.).
+
+    @param shared: directory where static files are located
+    @param trusted_proxies: list of trusted proxies
+    @rtype: callable
+    @return: a WSGI callable
+    """
     from MoinMoin.wsgiapp import application
 
     if trusted_proxies: