aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFilipp Lepalaan <f@0x00.co>2013-03-20 17:37:56 +0200
committerFilipp Lepalaan <f@0x00.co>2013-03-20 17:37:56 +0200
commit9b6935a7d5e92b0bf3463781b4d460d9d8445771 (patch)
tree63738268adc9fa8f47cf638c8664e8acb07ca680
parent0061765555f182dc16ff0ddd2499a47024ee6be0 (diff)
downloadpy-gsxws-9b6935a7d5e92b0bf3463781b4d460d9d8445771.tar.gz
py-gsxws-9b6935a7d5e92b0bf3463781b4d460d9d8445771.tar.bz2
py-gsxws-9b6935a7d5e92b0bf3463781b4d460d9d8445771.zip
Raise GsxError in Returns.get_pending()
-rwxr-xr-xgsxws.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gsxws.py b/gsxws.py
index 772452c..a2b85d5 100755
--- a/gsxws.py
+++ b/gsxws.py
@@ -490,8 +490,8 @@ class Returns(GsxObject):
dt = CLIENT.factory.create('ns1:partsPendingReturnRequestType')
dt.repairData = self.data
dt.userSession = SESSION
- result = CLIENT.service.PartsPendingReturn(dt)
- return result.partsPendingResponse
+
+ return self.submit('PartsPendingReturn', dt, 'partsPendingResponse')
class Part(GsxObject):
def lookup(self):