mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Cleaned up some funky indentation inconsistencies in lite-xmlrpc.py
This commit is contained in:
parent
138305b365
commit
47c736a90b
@ -113,7 +113,7 @@ class LoggingSimpleXMLRPCRequestHandler(SimpleXMLRPCServer.SimpleXMLRPCRequestHa
|
|||||||
|
|
||||||
def do_POST(self):
|
def do_POST(self):
|
||||||
clientIP, port = self.client_address
|
clientIP, port = self.client_address
|
||||||
# Log client IP and Port
|
# Log client IP and Port
|
||||||
logger.info('Client IP: %s - Port: %s' % (clientIP, port))
|
logger.info('Client IP: %s - Port: %s' % (clientIP, port))
|
||||||
try:
|
try:
|
||||||
# get arguments
|
# get arguments
|
||||||
@ -123,14 +123,14 @@ class LoggingSimpleXMLRPCRequestHandler(SimpleXMLRPCServer.SimpleXMLRPCRequestHa
|
|||||||
params, method = xmlrpclib.loads(data)
|
params, method = xmlrpclib.loads(data)
|
||||||
|
|
||||||
# Log client request
|
# Log client request
|
||||||
logger.info('Client request: \n%s\n' % data)
|
logger.info('Client request: \n%s\n' % data)
|
||||||
|
|
||||||
response = self._marshaled_dispatch(
|
response = self._marshaled_dispatch(
|
||||||
data, getattr(self, '_dispatch', None))
|
data, getattr(self, '_dispatch', None))
|
||||||
|
|
||||||
# Log server response
|
# Log server response
|
||||||
logger.info('Server response: \n%s\n' % response)
|
logger.info('Server response: \n%s\n' % response)
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
# This should only happen if the module is buggy
|
# This should only happen if the module is buggy
|
||||||
# internal error, report as HTTP server error
|
# internal error, report as HTTP server error
|
||||||
print e
|
print e
|
||||||
|
Loading…
Reference in New Issue
Block a user