Changeset 130
- Timestamp:
- 01/21/05 11:02:02
- Files:
-
- trunk/CHANGELOG.txt (modified) (1 diff)
- trunk/cherrypy/_cphttptools.py (modified) (1 diff)
- trunk/cherrypy/tutorial/06_aspects.py (modified) (1 diff)
- trunk/cherrypy/wsgiapp.py (modified) (1 diff)
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) 3 5 4 6 2004/12-29: trunk/cherrypy/_cphttptools.py
r128 r130 471 471 if path.endswith('/'): path = path[:-1] # Remove trailing slash 472 472 473 # So that requests like robots.txt can be handled by a method called robots_txt 474 path = path.replace('.', '_') 475 473 476 if not path: 474 477 objectPathList = [] trunk/cherrypy/tutorial/06_aspects.py
r102 r130 50 50 # requested method was executed. Its results are appended to 51 51 # the output string. 52 if methodName not in ['header', 'footer']:52 if getattr(method, 'exposed', False) and methodName not in ['header', 'footer']: 53 53 return CONTINUE, self.footer() 54 54 else: 55 # If the method is not exposed or if it's the header and footer itself, 56 # don't do anything 55 57 return CONTINUE, '' 56 58 trunk/cherrypy/wsgiapp.py
r129 r130 94 94 cpg.request.rfile = environ["wsgi.input"] 95 95 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']) 97 98 98 99 cpg.response.simpleCookie = Cookie.SimpleCookie()

