1 |
import sys |
import sys |
|
from xmlrpclib import Server |
|
2 |
|
|
3 |
def create(parent,configList): |
def create(parent,rpc_config): |
4 |
return FraggleXMLRPC(parent,configList) |
return FraggleXMLRPC(parent,rpc_config) |
5 |
|
|
6 |
class FraggleXMLRPC: |
class FraggleXMLRPC: |
7 |
|
|
8 |
def __init_rpc_server__(self,configList): |
def __init_rpc_server__(self,rpc_config): |
9 |
#print configList["url"] |
#print configList["url"] |
10 |
self.rpc_server = Server(configList["url"]) |
try: |
11 |
|
self.rpc_server = Server(rpc_config["url"]) |
12 |
|
except: |
13 |
|
pass |
14 |
|
|
15 |
def __init__(self,parent,configList): |
def __init__(self,parent,rpc_config): |
16 |
self.__init_rpc_server__(configList) |
from xmlrpclib import Server |
17 |
|
self.__init_rpc_server__(rpc_config) |
18 |
|
|
19 |
def FraggleSync(self): |
def FraggleSync(self): |
20 |
fragglexml = self.rpc_server.fraggleSync() |
fragglexml = self.rpc_server.fraggleSync() |