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

Changeset 159

Show
Ignore:
Timestamp:
04/24/05 12:31:12
Author:
rdelon
Message:

Fixed ticket #78; Try root.default for / if root.index doesn't exist

Files:

Legend:

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

    r156 r159  
    1     * if y is a static dir make y/a?b try and serve a file named a?b (Dan) 
    2     * pass threadIndex to onStartThreadList functions - ticket #91 (Remi) 
    3     * renamed "configDict" into "configMap" for consistency - ticket  #82 (Remi) 
     1    * Added tests about static content and httptools.redirect (Remi) 
     2    * Handle %20 (and others) in static content - ticket #104 (Remi) 
     3    * If y is a static dir make y/a?b try and serve a file named a?b (Dan) 
     4    * Pass threadIndex to onStartThreadList functions - ticket #91 (Remi) 
     5    * Renamed "configDict" into "configMap" for consistency - ticket  #82 (Remi) 
    46    * Dots in requests path are now replaced by underscores  - ticket #87 (Remi) 
    57    * Improved WSGI support and added example (seems to work OK) (Peter, Remi) 
  • trunk/cherrypy/_cphttptools.py

    r158 r159  
    486486    if path is None: 
    487487        path = cpg.request.objectPath or cpg.request.path 
    488     if path.startswith('/'): path = path[1:] # Remove leading slash 
    489     if path.endswith('/'): path = path[:-1] # Remove trailing slash 
     488    if path.startswith('/'): 
     489        path = path[1:] # Remove leading slash 
     490    if path.endswith('/'): 
     491        path = path[:-1] # Remove trailing slash 
    490492 
    491493    if not path: 
     
    511513        # Couldn't find the object: pop one from the list and try "default" 
    512514        lastObj = objectPathList.pop() 
    513         if not isFirst
     515        if (not isFirst) or (not path)
    514516            virtualPathList.insert(0, lastObj) 
    515517            objectPathList.append('default') 

Hosted by WebFaction

Log in as guest/cpguest to create tickets