I'm new to python. I'm using python 3.1.2 I've to communicate to the xml-rpc server through my code. From my code, I'm calling the client.py that will in-turn connect to the server to get the lists of comments from the server.
The working code:
class xmlrpc:
def connect(self, webaddr):
self.server = ServerProxy(webaddr)
Listing the method:-
my_list = self.server.tests.getTests()
the above method is working, but, whereas i've constraint to set the tests.getTests()
into a single cmd_str
like below
my_list = self.server.cmd_str
in this case, cmd_str
sent to the client.py as a string itself and not like other one. Could anyone pls help me how to acheive this?