1
0
Fork 0

- documented methods

git-svn-id: file:///home/www/usr01/svn/gnuviechadmin/gnuviech.info/gnuviechadmin/trunk@166 a67ec6bc-e5d5-0310-a910-815c51eb3124
This commit is contained in:
Jan Dittberner 2006-02-21 20:05:31 +00:00
parent d4f8dedfca
commit b7e63e7984

View file

@ -12,10 +12,17 @@ class GnuviechAdminSOAPServer(SOAPServer):
SOAP Server class for the gnuviech administration tool backend SOAP Server class for the gnuviech administration tool backend
""" """
def echo(self, param0): def echo(self, param0):
"""
This method echoes its parameter
"""
self.logger.debug("calling echo with " + param0) self.logger.debug("calling echo with " + param0)
return param0 + param0 return param0 + param0
def __init__(self): def __init__(self):
"""
This method creates the SOAPServer and registers the methods to be
available to connected SOAP clients.
"""
SOAPServer.__init__(self, ("127.0.0.1", 8080)) SOAPServer.__init__(self, ("127.0.0.1", 8080))
self.logger = logging.getLogger('GnuviechAdminSOAPServer') self.logger = logging.getLogger('GnuviechAdminSOAPServer')
hdlr = logging.FileHandler('soapserver.log') hdlr = logging.FileHandler('soapserver.log')
@ -27,6 +34,9 @@ class GnuviechAdminSOAPServer(SOAPServer):
self.logger.debug("registered function echo") self.logger.debug("registered function echo")
def main(self): def main(self):
"""
Starts serving SOAP requests.
"""
self.logger.debug("serving SOAP") self.logger.debug("serving SOAP")
self.serve_forever() self.serve_forever()