Jan Dittberner
985810317a
- add keywords - add ServiceFacade, SettingsManager, DomainManager - add xmlrpcclient - add xmlrpcserver git-svn-id: file:///home/www/usr01/svn/gnuviechadmin/gnuviech.info/gnuviechadmin/trunk@184 a67ec6bc-e5d5-0310-a910-815c51eb3124
21 lines
475 B
Python
Executable file
21 lines
475 B
Python
Executable file
#!/usr/bin/python
|
|
#
|
|
# XML-RPC server for gnuviech-admin tool
|
|
# (c) 2006 Jan Dittberner
|
|
# $Id$
|
|
#
|
|
from DocXMLRPCServer import DocXMLRPCServer
|
|
from GnuviechAdmin import ServiceFacade
|
|
|
|
def startRPCServer():
|
|
server = DocXMLRPCServer(("localhost", 8080))
|
|
server.register_introspection_functions()
|
|
server.register_instance(ServiceFacade())
|
|
|
|
try:
|
|
server.serve_forever()
|
|
except KeyboardInterrupt:
|
|
server.server_close()
|
|
|
|
if __name__ == "__main__":
|
|
startRPCServer()
|