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

Changeset 1070

Show
Ignore:
Timestamp:
04/25/06 02:18:05
Author:
fumanchu
Message:

Removed a bunch of instances of the word "filter".

Files:

Legend:

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

    r1047 r1070  
    7373            cherrypy.profiler = None 
    7474         
    75         # Initialize the built in filters 
    76 ##        filters.init() 
    77      
    7875    def start(self): 
    7976        """Start the application server engine.""" 
  • trunk/cherrypy/_cputil.py

    r1069 r1070  
    5858    """Return the special attribute. A special attribute is one that 
    5959    applies to all of the children from where it is defined, such as 
    60     _cp_filters.""" 
     60    _cp_on_error.""" 
    6161     
    6262    # First, we look in the right-most object to see if this special 
  • trunk/cherrypy/lib/cptools.py

    r1069 r1070  
    178178 
    179179 
    180 # Old filter code 
     180# Tool code 
    181181 
    182182def base_url(base=None, use_x_forwarded_host=True): 
     
    233233    sess = getattr(cherrypy, "session", None) 
    234234    if sess is None: 
    235         # Shouldn't this raise an error (if the session filter isn't enabled)? 
     235        # Shouldn't this raise an error (if the sessions tool isn't enabled)? 
    236236        return False 
    237237     
     
    240240     
    241241##    conf = cherrypy.config.get 
    242 ##    if conf('static_filter.on', False): 
     242##    if conf('tools.staticfile.on', False) or conf('tools.staticdir.on', False): 
    243243##        return 
    244244    if request.path.endswith('login_screen'): 
  • trunk/cherrypy/lib/tidy.py

    r1047 r1070  
    1515    server would also crash) 
    1616    """ 
    17     # the tidy filter, by its very nature it's not generator friendly,  
     17    # the tidy tool, by its very nature it's not generator friendly,  
    1818    # so we just collapse the body and work with it. 
    1919    originalBody = cherrypy.response.collapse_body() 
     
    9494 
    9595def nsgmls(temp_dir, nsgmls_path, catalog_path, errors_to_ignore=None): 
    96     # the tidy filter, by its very nature it's not generator friendly,  
     96    # the tidy tool, by its very nature it's not generator friendly,  
    9797    # so we just collect the body and work with it. 
    9898    original_body = cherrypy.response.collapse_body() 
  • trunk/cherrypy/lib/wsgiapp.py

    r1047 r1070  
    1 """a WSGI application filter for CherryPy""" 
     1"""a WSGI application tool for CherryPy""" 
    22 
    33import sys 
  • trunk/cherrypy/test/benchmark.py

    r1047 r1070  
    7070        }, 
    7171    '/static': { 
    72         'static_filter.on': True, 
    73         'static_filter.dir': 'static', 
    74         'static_filter.root': curdir, 
     72        'tools.staticdir.on': True, 
     73        'tools.staticdir.dir': 'static', 
     74        'tools.staticdir.root': curdir, 
    7575        }, 
    7676    } 
     
    257257     
    258258    print 
    259     print ("Client Thread Report (1000 requests, 14 bytes via static_filter, " 
     259    print ("Client Thread Report (1000 requests, 14 bytes via staticdir, " 
    260260           "%s server threads):" % cherrypy.config.get('server.thread_pool')) 
    261261    print_report(thread_report("%s/static/index.html" % MOUNT_POINT)) 
  • trunk/cherrypy/tutorial/tut07_sessions.py

    r856 r1070  
    2929 
    3030cherrypy.root = HitCounter() 
    31 cherrypy.config.update({'session_filter.on': True}) 
     31cherrypy.config.update({'tools.sessions.on': True}) 
    3232 
    3333if __name__ == '__main__': 
  • trunk/cherrypy/tutorial/tut09_files.py

    r1047 r1070  
    3333your file. Note that the "name" argument is ignored if you don't also 
    3434provide a "disposition" (usually "attachement"). You can manually set 
    35 "contentType", but be aware that if you also use the EncodingFilter, it 
     35"contentType", but be aware that if you also use the encoding tool, it 
    3636may choke if the file extension is not recognized as belonging to a known 
    3737Content-Type. Setting the contentType to "application/x-download" works 

Hosted by WebFaction

Log in as guest/cpguest to create tickets