Download Install Tutorial Docs FAQ Tools WikiLicense Team IRC Planet Involvement Shop Book

Changeset 1404

Show
Ignore:
Timestamp:
10/21/06 13:33:00
Author:
fumanchu
Message:

Quickstart now calls config.update. See http://groups.google.com/group/cherrypy-users/browse_thread/thread/e1e7d4088dcddeac.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/cherrypy/__init__.py

    r1400 r1404  
    2525def quickstart(root, script_name="", config=None): 
    2626    """Mount the given app, start the engine and builtin server, then block.""" 
     27    _global_conf_alias.update(config) 
    2728    tree.mount(root, script_name, config) 
    2829    server.quickstart() 
     
    170171    If you call url(qs=cherrypy.request.query_string), you should get the 
    171172    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. 
    172178    """ 
    173179    if qs: 
     
    252258 
    253259 
    254 # Set up config last so it can wrap other top-level objects 
     260# import _cpconfig last so it can reference other top-level objects 
    255261from 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. 
     264config = _global_conf_alias = _cpconfig.Config() 

Hosted by WebFaction

Log in as guest/cpguest to create tickets