[Gug-cvs] gug/gug/client soap.py,1.14,1.15
Status: Planning
Brought to you by:
szferi
From: Nagy Z. <zs...@us...> - 2007-06-06 14:02:09
|
Update of /cvsroot/gug/gug/gug/client In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv12980/gug/client Modified Files: soap.py Log Message: Insert 'Response' into soap responses. Index: soap.py =================================================================== RCS file: /cvsroot/gug/gug/gug/client/soap.py,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** soap.py 29 May 2007 11:44:00 -0000 1.14 --- soap.py 6 Jun 2007 14:02:07 -0000 1.15 *************** *** 135,140 **** retries = retries-1 try: ! return self.proxy.RPC(None, self.method, args, \ MyAny(nillable = True), requesttypecode = MyAny(pname = self.method)) except socket.error, error: if error.args[0] == 99: --- 135,144 ---- retries = retries-1 try: ! response = self.proxy.RPC(None, self.method, args, \ MyAny(nillable = True), requesttypecode = MyAny(pname = self.method)) + try: + return response['Response'] + except: + return response except socket.error, error: if error.args[0] == 99: |