diff options
author | Fabian Affolter <fabian@bernewireless.net> | 2010-06-07 13:26:11 +0000 |
---|---|---|
committer | Sol Jerome <solj@ices.utexas.edu> | 2010-06-07 08:42:53 -0500 |
commit | 6d2a8b48de43d5a07c8c0ea813f61db30722b320 (patch) | |
tree | fad57e3a0ccc188d9fa69c5c93a18346d5d3b558 /src/lib/SSLServer.py | |
parent | 3599dc2990dafbacdb5aa54a6bd338850cefa770 (diff) | |
download | bcfg2-6d2a8b48de43d5a07c8c0ea813f61db30722b320.tar.gz bcfg2-6d2a8b48de43d5a07c8c0ea813f61db30722b320.tar.bz2 bcfg2-6d2a8b48de43d5a07c8c0ea813f61db30722b320.zip |
Updated files to match PEP 257
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5899 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/SSLServer.py')
-rw-r--r-- | src/lib/SSLServer.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/lib/SSLServer.py b/src/lib/SSLServer.py index fac332f14..ca22a33b8 100644 --- a/src/lib/SSLServer.py +++ b/src/lib/SSLServer.py @@ -69,6 +69,7 @@ class SSLServer (SocketServer.TCPServer, object): Properties: url -- A url pointing to this server. + """ allow_reuse_address = True @@ -88,6 +89,7 @@ class SSLServer (SocketServer.TCPServer, object): certfile -- certificate file (enables ssl encryption) reqCert -- client must present certificate timeout -- timeout for non-blocking request handling + """ all_iface_address = ('', server_address[1]) @@ -158,6 +160,7 @@ class XMLRPCRequestHandler (SimpleXMLRPCServer.SimpleXMLRPCRequestHandler): Methods: authenticate -- prompt a check of a client's provided username and password handle_one_request -- handle a single rpc (optionally authenticating) + """ logger = logging.getLogger("Cobalt.Server.XMLRPCRequestHandler") @@ -182,7 +185,9 @@ class XMLRPCRequestHandler (SimpleXMLRPCServer.SimpleXMLRPCRequestHandler): def parse_request(self): """Extends parse_request. - Optionally check HTTP authentication when parsing.""" + Optionally check HTTP authentication when parsing. + + """ if not SimpleXMLRPCServer.SimpleXMLRPCRequestHandler.parse_request(self): return False try: @@ -251,6 +256,7 @@ class XMLRPCServer (SocketServer.ThreadingMixIn, SSLServer, Properties: require_auth -- the request handler is requiring authorization credentials -- valid credentials being used for authentication + """ def __init__(self, server_address, RequestHandlerClass=None, @@ -272,6 +278,7 @@ class XMLRPCServer (SocketServer.ThreadingMixIn, SSLServer, register -- presence should be reported to service-location (default True) allow_none -- allow None values in xml-rpc encoding -- encoding to use for xml-rpc (default UTF-8) + """ XMLRPCDispatcher.__init__(self, allow_none, encoding) |