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

Changeset 130

Show
Ignore:
Timestamp:
01/21/05 11:02:02
Author:
rdelon
Message:

--

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/CHANGELOG.txt

    r123 r130  
    1         * Added DecodingFilter 
    2         * Added form module (port from CP1 Form.cpy) 
     1    * Dots in requests path are now replaced by underscores  - ticket #87 (Remi) 
     2    * Improved WSGI support and added example (seems to work OK) (Peter, Remi) 
     3        * Added DecodingFilter (Remi) 
     4        * Added form module (port from CP1 Form.cpy) (Remi) 
    35 
    462004/12-29: 
  • trunk/cherrypy/_cphttptools.py

    r128 r130  
    471471    if path.endswith('/'): path = path[:-1] # Remove trailing slash 
    472472 
     473    # So that requests like robots.txt can be handled by a method called  robots_txt 
     474    path = path.replace('.', '_') 
     475 
    473476    if not path: 
    474477        objectPathList = [] 
  • trunk/cherrypy/tutorial/06_aspects.py

    r102 r130  
    5050        # requested method was executed. Its results are appended to 
    5151        # the output string. 
    52         if methodName not in ['header', 'footer']: 
     52        if getattr(method, 'exposed', False) and methodName not in ['header', 'footer']: 
    5353            return CONTINUE, self.footer() 
    5454        else: 
     55            # If the method is not exposed or if it's the header and footer itself,  
     56            # don't do anything 
    5557            return CONTINUE, '' 
    5658 
  • trunk/cherrypy/wsgiapp.py

    r129 r130  
    9494    cpg.request.rfile = environ["wsgi.input"] 
    9595    cpg.request.objectPath = None  
    96     cpg.request.simpleCookie.load(cpg.request.headerMap['Cookie']) 
     96    if 'Cookie' in cpg.request.headerMap: 
     97        cpg.request.simpleCookie.load(cpg.request.headerMap['Cookie']) 
    9798 
    9899    cpg.response.simpleCookie = Cookie.SimpleCookie() 

Hosted by WebFaction

Log in as guest/cpguest to create tickets