Changeset 133
- Timestamp:
- 01/25/05 11:00:48
- Files:
-
- trunk/cherrypy/_cphttptools.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/cherrypy/_cphttptools.py
r130 r133 413 413 # Let cpg be the first valid object. 414 414 validObjects = ["cpg"] 415 415 416 416 # Scan the objPathList in order from left to right 417 417 for index, obj in enumerate(objPathList): 418 # maps virtual filenames to Python identifiers (substitutes '.' for '_') 419 obj = obj.replace('.', '_') 420 418 421 # currentObjStr holds something like 'cpg.root.something.else' 419 422 currentObjStr = ".".join(validObjects) … … 471 474 if path.endswith('/'): path = path[:-1] # Remove trailing slash 472 475 473 # So that requests like robots.txt can be handled by a method called robots_txt474 path = path.replace('.', '_')475 476 476 if not path: 477 477 objectPathList = []

