Package acis_xmlrpc :: Module run_server
[hide private]
[frames] | no frames]

Source Code for Module acis_xmlrpc.run_server

 1  # 
 2  # Run in foreground with 'twistd -noy <filename>.tac' 
 3  # 
 4   
 5  from twisted.application import internet, service 
 6  from twisted.web import xmlrpc, server 
 7  from acis_xmlrpc.xmlrpc import IACISFactory, ACISService, ACISXMLRPC 
 8  from acis_xmlrpc.config import * 
 9   
10  application = service.Application(GENERAL_UCAN_NAME) 
11  resource = ACISXMLRPC( IACISFactory(ACISService()) ) 
12  serv = internet.TCPServer(XMLRPC_SERVER_PORT, server.Site(resource)).setServiceParent(application) 
13