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

Changeset 731

Show
Ignore:
Timestamp:
10/09/05 23:11:25
Author:
fumanchu
Message:

Fix for #283.

Files:

Legend:

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

    r708 r731  
    3232 
    3333from BaseHTTPServer import BaseHTTPRequestHandler 
    34 responseCodes = BaseHTTPRequestHandler.responses 
     34responseCodes = BaseHTTPRequestHandler.responses.copy() 
    3535 
    3636import inspect 
     
    245245        stat = os.stat(path) 
    246246    except OSError: 
    247         if getattr(cherrypy, "debug", None)
     247        if cherrypy.config.get('server.environment') == 'development'
    248248            cherrypy.log("    NOT FOUND file: %s" % path, "DEBUG") 
    249249        raise cherrypy.NotFound() 

Hosted by WebFaction

Log in as guest/cpguest to create tickets