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

Changeset 1061

Show
Ignore:
Timestamp:
04/22/06 17:48:26
Author:
fumanchu
Message:

Dispatchers shouldn't change request.object_path before calling the page handler. Moved that info into a new request.found_object_path variable.

Files:

Legend:

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

    r1055 r1061  
    305305        handler, opath, vpath = self.find(request.browser_url, path) 
    306306         
    307         # Remove "root" from opath and join it to get object_path 
    308         request.object_path = '/' + '/'.join(opath[1:]) 
     307        # Remove "root" from opath and join it to get found_object_path 
     308        request.found_object_path = '/' + '/'.join(opath[1:]) 
    309309         
    310310        # Decode any leftover %2F in the virtual_path atoms. 
  • trunk/cherrypy/lib/static.py

    r1056 r1061  
    172172    if not os.path.isabs(dir): 
    173173        if not root: 
    174             msg = "Static tool requires an absolute dir or root." 
     174            msg = "Static dir requires an absolute dir (or root)." 
    175175            raise cherrypy.WrongConfigValue(msg) 
    176176        dir = os.path.join(root, dir) 

Hosted by WebFaction

Log in as guest/cpguest to create tickets