Changeset 46a0f7a for fedd/federation
- Timestamp:
- Dec 2, 2008 10:34:23 PM (16 years ago)
- Branches:
- axis_example, compt_changes, info-ops, master, version-1.30, version-2.00, version-3.01, version-3.02
- Children:
- 9d3e646
- Parents:
- 769b89a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fedd/federation/server.py
r769b89a r46a0f7a 17 17 18 18 import logging 19 import traceback 19 20 20 21 # The SSL server here is based on the implementation described at … … 28 29 Interface the fedd services to the XMLRPC and SOAP interfaces 29 30 """ 30 def __init__(self, ME, handler, ssl_ctx, impl ):31 def __init__(self, ME, handler, ssl_ctx, impl, debug=False): 31 32 """ 32 33 Create an SSL server that handles the transport in handler using the … … 39 40 self.xmlrpc_methods = impl.xmlrpc_services 40 41 self.log = logging.getLogger("fedd") 41 42 def handle_error(self, request, address): 42 if debug: self.handle_error = self.handle_error_debug 43 else: self.handle_error = self.handle_error_standard 44 45 def handle_error_debug(self, request, client_address): 46 print '-'*40 47 traceback.print_exc() 48 print '-'*40 49 50 51 def handle_error_standard(self, request, address): 43 52 """ 44 53 The default SSLServer prints a stack trace here. This is a little
Note: See TracChangeset
for help on using the changeset viewer.