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

Changeset 133

Show
Ignore:
Timestamp:
01/25/05 11:00:48
Author:
cribeiro
Message:

Changed the behavior introduced by ticket #87. It broke some code that relied on getting the unmangled filename on default(). Now it just searches for the objects with the mangled name, but doesnt keep the URL mangled.

Files:

Legend:

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

    r130 r133  
    413413    # Let cpg be the first valid object. 
    414414    validObjects = ["cpg"] 
    415      
     415     
    416416    # Scan the objPathList in order from left to right 
    417417    for index, obj in enumerate(objPathList): 
     418        # maps virtual filenames to Python identifiers (substitutes '.' for '_') 
     419        obj = obj.replace('.', '_') 
     420 
    418421        # currentObjStr holds something like 'cpg.root.something.else' 
    419422        currentObjStr = ".".join(validObjects) 
     
    471474    if path.endswith('/'): path = path[:-1] # Remove trailing slash 
    472475 
    473     # So that requests like robots.txt can be handled by a method called  robots_txt 
    474     path = path.replace('.', '_') 
    475  
    476476    if not path: 
    477477        objectPathList = [] 

Hosted by WebFaction

Log in as guest/cpguest to create tickets