From 93ad20e4fc7196cb40bf18606382d595bf16cb9e Mon Sep 17 00:00:00 2001 From: "Paul J. Davis" Date: Fri, 23 Jul 2010 20:43:56 -0400 Subject: [PATCH] Minor white space and ordering fixes for my CDO --- gunicorn/config.py | 34 +++++++++++++++------------------- 1 file changed, 15 insertions(+), 19 deletions(-) diff --git a/gunicorn/config.py b/gunicorn/config.py index 7c716b87..1cd67830 100644 --- a/gunicorn/config.py +++ b/gunicorn/config.py @@ -539,6 +539,21 @@ class DefaultProcName(Setting): Internal setting that is adjusted for each type of application. """ +class WhenReady(Setting): + name = "when_ready" + section = "Server Hooks" + validator = validate_callable(1) + type = "callable" + def def_start_server(server): + pass + def_start_server = staticmethod(def_start_server) + default = def_start_server + desc = """\ + Called just after the server is started. + + The callable needs to accept a single instance variable for the Arbiter. + """ + class Prefork(Setting): name = "pre_fork" section = "Server Hooks" @@ -571,23 +586,6 @@ class Postfork(Setting): new Worker. """ - -class WhenReady(Setting): - name = "when_ready" - section = "Server Hooks" - validator = validate_callable(1) - type = "callable" - def def_start_server(server): - pass - def_start_server = staticmethod(def_start_server) - default = def_start_server - desc = """\ - Called just after the server is started. - - The callable needs to accept a single instance variable for the Arbiter. - """ - - class PreExec(Setting): name = "pre_exec" section = "Server Hooks" @@ -603,7 +601,6 @@ class PreExec(Setting): The callable needs to accept a single instance variable for the Arbiter. """ - class PreRequest(Setting): name = "pre_request" section = "Server Hooks" @@ -620,7 +617,6 @@ class PreRequest(Setting): the Request. """ - class PostRequest(Setting): name = "post_request" section = "Server Hooks"