Changeset 46a0f7a
- 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
- Location:
- fedd
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
fedd/fedd.py
r769b89a r46a0f7a 161 161 162 162 t = t.lower() 163 sdebug = (opts.debug > 0) 163 164 try: 164 165 if t == 'soap': 165 servers.append(server((h, p), soap_handler, ctx, impl ))166 servers.append(server((h, p), soap_handler, ctx, impl, sdebug)) 166 167 elif t == 'xmlrpc': 167 servers.append(server((h, p), xmlrpc_handler, ctx, impl ))168 servers.append(server((h, p), xmlrpc_handler, ctx, impl, sdebug)) 168 169 else: 169 170 flog.error("Invalid transport specification (%s) in service %s" % \ -
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.