Changeset 1706
- Timestamp:
- 08/22/07 01:02:00
- Files:
-
- branches/cherrypy-3.0.x/cherrypy/_cpchecker.py (modified) (2 diffs)
- branches/cherrypy-3.0.x/cherrypy/test/checkerdemo.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/cherrypy-3.0.x/cherrypy/_cpchecker.py
r1575 r1706 156 156 if len(atoms) > 1: 157 157 if atoms[0] not in ns: 158 # Spit out a special warning if a known 159 # namespace is preceded by "cherrypy." 158 160 if (atoms[0] == "cherrypy" and atoms[1] in ns): 159 161 msg = ("The config entry %r is invalid; " … … 165 167 "section: [%s]" % (k, atoms[0], section)) 166 168 warnings.warn(msg) 169 elif atoms[0] == "tools": 170 if atoms[1] not in dir(cherrypy.tools): 171 msg = ("The config entry %r may be invalid, " 172 "because the %r tool was not found.\n" 173 "section: [%s]" % (k, atoms[1], section)) 174 warnings.warn(msg) 167 175 168 176 def check_config_namespaces(self): branches/cherrypy-3.0.x/cherrypy/test/checkerdemo.py
r1574 r1706 36 36 # Warn on mismatched types 37 37 '/conftype': {'request.show_tracebacks': 14}, 38 # Warn on unknown tool. 39 '/web': {'tools.unknown.on': True}, 38 40 } 39 41 cherrypy.quickstart(Root(), config=conf)

