Minor white space and ordering fixes for my CDO

This commit is contained in:
Paul J. Davis 2010-07-23 20:43:56 -04:00
parent eca6fad4ce
commit 93ad20e4fc

View File

@ -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"