Changeset 1541
- Timestamp:
- 12/21/06 01:10:15
- Files:
-
- trunk/cherrypy/__init__.py (modified) (1 diff)
- trunk/cherrypy/_cpchecker.py (modified) (2 diffs)
- trunk/cherrypy/_cpengine.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/cherrypy/__init__.py
r1540 r1541 270 270 # without shadowing cherrypy.config. 271 271 config = _global_conf_alias = _cpconfig.Config() 272 273 import _cpchecker274 checker = _cpchecker.Checker()trunk/cherrypy/_cpchecker.py
r1536 r1541 9 9 global_config_contained_paths = False 10 10 11 def checkall(self):11 def __call__(self): 12 12 oldformatwarning = warnings.formatwarning 13 13 warnings.formatwarning = self.formatwarning … … 103 103 if k in self.obsolete: 104 104 warnings.warn("%r is obsolete. Use %r instead.\n" 105 "section: [%s]" % (k, v, section))105 "section: [%s]" % (k, self.obsolete[k], section)) 106 106 elif k in self.deprecated: 107 107 warnings.warn("%r is deprecated. Use %r instead.\n" 108 "section: [%s]" % (k, v, section))108 "section: [%s]" % (k, self.deprecated[k], section)) 109 109 else: 110 110 if section in self.obsolete: 111 warnings.warn("%r is obsolete. Use %r instead." % (section, conf)) 111 warnings.warn("%r is obsolete. Use %r instead." 112 % (section, self.obsolete[conf])) 112 113 elif section in self.deprecated: 113 warnings.warn("%r is deprecated. Use %r instead." % (section, conf)) 114 warnings.warn("%r is deprecated. Use %r instead." 115 % (section, self.decprecated[conf])) 114 116 115 117 def check_compatibility(self): trunk/cherrypy/_cpengine.py
r1535 r1541 10 10 11 11 import cherrypy 12 from cherrypy import _cprequest 12 from cherrypy import _cprequest, _cpchecker 13 13 14 14 # Use a flag to indicate the state of the application engine. … … 53 53 autoreload_frequency = 1 54 54 autoreload_match = ".*" 55 run_checker = True55 checker = _cpchecker.Checker() 56 56 57 57 def __init__(self): … … 76 76 self.state = STARTING 77 77 78 if self. run_checker:79 cherrypy.checker.checkall()78 if self.checker: 79 self.checker() 80 80 81 81 for func in self.on_start_engine_list:

