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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

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