Changeset 1404
- Timestamp:
- 10/21/06 13:33:00
- Files:
-
- trunk/cherrypy/__init__.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/cherrypy/__init__.py
r1400 r1404 25 25 def quickstart(root, script_name="", config=None): 26 26 """Mount the given app, start the engine and builtin server, then block.""" 27 _global_conf_alias.update(config) 27 28 tree.mount(root, script_name, config) 28 29 server.quickstart() … … 170 171 If you call url(qs=cherrypy.request.query_string), you should get the 171 172 original browser URL (assuming no Internal redirections). 173 174 If relative is False (the default), the output will be an absolute URL 175 (usually including the scheme, host, vhost, and script_name). 176 If relative is True, the output will instead be a URL that is relative 177 to the current request path, perhaps including '..' atoms. 172 178 """ 173 179 if qs: … … 252 258 253 259 254 # Set up config last so it can wrapother top-level objects260 # import _cpconfig last so it can reference other top-level objects 255 261 from cherrypy import _cpconfig 256 config = _cpconfig.Config() 262 # Use _global_conf_alias so quickstart can use 'config' as an arg 263 # without shadowing cherrypy.config. 264 config = _global_conf_alias = _cpconfig.Config()

