summaryrefslogtreecommitdiff
path: root/cherrypy/_cpengine.py
diff options
context:
space:
mode:
authorRobert Brewer <fumanchu@aminus.org>2006-12-28 20:34:24 +0000
committerRobert Brewer <fumanchu@aminus.org>2006-12-28 20:34:24 +0000
commit4afcf1bed1fce0314fd87d27776a48343f462f03 (patch)
tree887b0b6c505dc9d6abf42c87bbf9d1ee403c8397 /cherrypy/_cpengine.py
parentbce6251732ebe9bb1d750a31c610ff0d501507a7 (diff)
downloadcherrypy-git-4afcf1bed1fce0314fd87d27776a48343f462f03.tar.gz
Moved checker back to cherrypy.checker from engine, and also added a new check_config_types method. There's also a new checker config namespace, so you can turn off the checker with "checker.on = False", or turn off specific methods with "checker.check_method_foo = None".
Diffstat (limited to 'cherrypy/_cpengine.py')
-rw-r--r--cherrypy/_cpengine.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/cherrypy/_cpengine.py b/cherrypy/_cpengine.py
index 114a27e0..efb5ee31 100644
--- a/cherrypy/_cpengine.py
+++ b/cherrypy/_cpengine.py
@@ -9,7 +9,7 @@ import threading
import time
import cherrypy
-from cherrypy import _cprequest, _cpchecker
+from cherrypy import _cprequest
# Use a flag to indicate the state of the application engine.
STOPPED = 0
@@ -52,7 +52,6 @@ class Engine(object):
autoreload_on = True
autoreload_frequency = 1
autoreload_match = ".*"
- checker = _cpchecker.Checker()
def __init__(self):
self.state = STOPPED
@@ -75,8 +74,7 @@ class Engine(object):
"""Start the application engine."""
self.state = STARTING
- if self.checker:
- self.checker()
+ cherrypy.checker()
for func in self.on_start_engine_list:
func()