/[cvs]/nfo/projects/netfraggle/bin/FraggleXMLRPC.py
ViewVC logotype

Annotation of /nfo/projects/netfraggle/bin/FraggleXMLRPC.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations)
Mon Aug 30 13:11:07 2004 UTC (20 years, 2 months ago) by joko
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +10 -7 lines
File MIME type: text/x-python
U minor change: renamed variable

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

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed