Back to index

python3.2  3.2.2
Public Member Functions | Static Public Attributes
test.ssl_servers.RootedHTTPRequestHandler Class Reference
Collaboration diagram for test.ssl_servers.RootedHTTPRequestHandler:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def translate_path
def log_message

Static Public Attributes

string server_version = "TestHTTPS/1.0"
 root = here
int timeout = 5

Detailed Description

Definition at line 45 of file ssl_servers.py.


Member Function Documentation

def test.ssl_servers.RootedHTTPRequestHandler.log_message (   self,
  format,
  args 
)

Definition at line 75 of file ssl_servers.py.

00075 
00076     def log_message(self, format, *args):
00077         # we override this to suppress logging unless "verbose"
00078         if support.verbose:
00079             sys.stdout.write(" server (%s:%d %s):\n   [%s] %s\n" %
00080                              (self.server.server_address,
00081                               self.server.server_port,
00082                               self.request.cipher(),
00083                               self.log_date_time_string(),
00084                               format%args))
00085 

Here is the call graph for this function:

Translate a /-separated PATH to the local filename syntax.

Components that mean special things to the local file system
(e.g. drive or directory names) are ignored.  (XXX They should
probably be diagnosed.)

Definition at line 55 of file ssl_servers.py.

00055 
00056     def translate_path(self, path):
00057         """Translate a /-separated PATH to the local filename syntax.
00058 
00059         Components that mean special things to the local file system
00060         (e.g. drive or directory names) are ignored.  (XXX They should
00061         probably be diagnosed.)
00062 
00063         """
00064         # abandon query parameters
00065         path = urllib.parse.urlparse(path)[2]
00066         path = os.path.normpath(urllib.parse.unquote(path))
00067         words = path.split('/')
00068         words = filter(None, words)
00069         path = self.root
00070         for word in words:
00071             drive, word = os.path.splitdrive(word)
00072             head, word = os.path.split(word)
00073             path = os.path.join(path, word)
00074         return path

Here is the call graph for this function:


Member Data Documentation

Definition at line 51 of file ssl_servers.py.

Definition at line 50 of file ssl_servers.py.

Definition at line 53 of file ssl_servers.py.


The documentation for this class was generated from the following file: