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

Changeset 1648

Show
Ignore:
Timestamp:
04/03/07 17:29:27
Author:
fumanchu
Message:

Allow "environment" config entry to be blank or None.

Files:

Legend:

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

    r1627 r1648  
    268268            config = config["global"] 
    269269         
    270         if 'environment' in config: 
    271             env = environments[config['environment']] 
     270        which_env = config.get('environment') 
     271        if which_env: 
     272            env = environments[which_env] 
    272273            for k in env: 
    273274                if k not in config: 

Hosted by WebFaction

Log in as guest/cpguest to create tickets