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

Changeset 939

Show
Ignore:
Timestamp:
01/25/06 10:26:13
Author:
rdelon
Message:

Reverting changeset [926]: Removing "is_app_root" proof of concept since we decided to go with the tree.mount() route for now.

Files:

Legend:

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

    r928 r939  
    44 
    55import datetime 
    6 import os.path 
    76import sys 
    87import types 
     
    101100     
    102101    logfunc(msg, context, severity) 
    103  
    104 def url(u): 
    105     return request.app_path + u 
  • trunk/cherrypy/_cphttptools.py

    r926 r939  
    270270        names = [name for name, candidate in objectTrail] 
    271271         
    272         # Try to get app_path: 
    273         current_objectpath = objectpath 
    274         for i in xrange(len(objectTrail) - 1, -1, -1): 
    275             name, candidate = objectTrail[i] 
    276             if getattr(candidate, 'is_app_root', False): 
    277                 cherrypy.request.app_path = current_objectpath 
    278                 break 
    279             current_objectpath = os.path.dirname(current_objectpath) 
    280  
    281272        # Try successive objects (reverse order) 
    282273        mounted_app_roots = cherrypy.tree.mount_points.values() 

Hosted by WebFaction

Log in as guest/cpguest to create tickets