aboutsummaryrefslogtreecommitdiffstats
path: root/gsxws/repairs.py
diff options
context:
space:
mode:
authorFilipp Lepalaan <f@230.to>2013-06-10 14:32:12 +0300
committerFilipp Lepalaan <f@230.to>2013-06-10 14:32:12 +0300
commitf327752947ec4ce9445fcf51baddc9ca72443152 (patch)
treeb9971dcf65eb027ba8461badfd3891073f5bdcb8 /gsxws/repairs.py
parentf4b2a46541da9e17ee5372c260e09d1976d1a506 (diff)
downloadpy-gsxws-f327752947ec4ce9445fcf51baddc9ca72443152.tar.gz
py-gsxws-f327752947ec4ce9445fcf51baddc9ca72443152.tar.bz2
py-gsxws-f327752947ec4ce9445fcf51baddc9ca72443152.zip
Cleanup
Diffstat (limited to 'gsxws/repairs.py')
-rw-r--r--gsxws/repairs.py16
1 files changed, 7 insertions, 9 deletions
diff --git a/gsxws/repairs.py b/gsxws/repairs.py
index ee649d8..13bf4e5 100644
--- a/gsxws/repairs.py
+++ b/gsxws/repairs.py
@@ -1,3 +1,5 @@
+# -*- coding: utf-8 -*-
+
"gsxws/repairs.py"
import re
import sys
@@ -82,8 +84,7 @@ class Repair(GsxObject):
if hasattr(self, "dispatchId"):
self.repairConfirmationNumber = self.dispatchId
- self._submit("repairData", "UpdateSerialNumber", "repairConfirmation")
- return self._req.objects[0]
+ return self._submit("repairData", "UpdateSerialNumber", "repairConfirmation")
def update_kgb_sn(self, sn):
"""
@@ -102,10 +103,8 @@ class Repair(GsxObject):
self.serialNumber = sn
self.repairConfirmationNumber = self.dispatchId
- self._submit("UpdateKGBSerialNumberRequest", "UpdateKGBSerialNumber",
- "UpdateKGBSerialNumberResponse")
-
- return self._req.objects[0]
+ return self._submit("UpdateKGBSerialNumberRequest", "UpdateKGBSerialNumber",
+ "UpdateKGBSerialNumberResponse")
def lookup(self):
"""
@@ -136,9 +135,8 @@ class Repair(GsxObject):
repair confirmation numbers to be submitted to GSX to be marked as complete.
"""
self.repairConfirmationNumbers = numbers or self.dispatchId
- self._submit("MarkRepairCompleteRequest", "MarkRepairComplete",
- "MarkRepairCompleteResponse")
- return self._req.objects[0]
+ return self._submit("MarkRepairCompleteRequest", "MarkRepairComplete",
+ "MarkRepairCompleteResponse")
def status(self, numbers=None):
"""