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

Changeset 1270

Show
Ignore:
Timestamp:
08/22/06 16:33:25
Author:
fumanchu
Message:

tool docstrings.

Files:

Legend:

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

    r1267 r1270  
    88 
    99def validate_etags(autotags=False): 
    10     """Validate the current ETag against If-Match, If-None-Match headers.""" 
     10    """Validate the current ETag against If-Match, If-None-Match headers. 
     11     
     12    If autotags is True, an ETag response-header value will be provided 
     13    from an MD5 hash of the response body (unless some other code has 
     14    already provided an ETag header). If False, the ETag will not be 
     15    automatic, and if no other code has provided an ETag value, then no 
     16    checks will be performed against If-Match or If-None-Match headers. 
     17    """ 
    1118    # Guard against being run twice. 
    1219    if hasattr(cherrypy.response, "ETag"): 
     
    4148 
    4249def validate_since(): 
    43     """Validate the current Last-Modified against If-Modified-Since headers.""" 
     50    """Validate the current Last-Modified against If-Modified-Since headers. 
     51     
     52    If no code has set the Last-Modified response header, then no validation 
     53    will be performed. 
     54    """ 
    4455    lastmod = cherrypy.response.headers.get('Last-Modified') 
    4556    if lastmod: 

Hosted by WebFaction

Log in as guest/cpguest to create tickets