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