aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFilipp Lepalaan <f@230.to>2013-06-07 10:42:27 +0300
committerFilipp Lepalaan <f@230.to>2013-06-07 10:42:27 +0300
commitf6b98ab31f74279c488ba141f830f46296c054dc (patch)
tree623573803c2533422d3cf14c1d96d038996c7467
parent9b811ed370c6c11cca946a99c0734e9a009b5d5c (diff)
downloadpy-gsxws-f6b98ab31f74279c488ba141f830f46296c054dc.tar.gz
py-gsxws-f6b98ab31f74279c488ba141f830f46296c054dc.tar.bz2
py-gsxws-f6b98ab31f74279c488ba141f830f46296c054dc.zip
Fix CA namespace
-rw-r--r--gsxws/repairs.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/gsxws/repairs.py b/gsxws/repairs.py
index 717d8f1..440054d 100644
--- a/gsxws/repairs.py
+++ b/gsxws/repairs.py
@@ -197,13 +197,13 @@ class CarryInRepair(Repair):
>>> CarryInRepair(requestReviewByApple=True).requestReviewByApple
'Y'
"""
- _namespace = "emea:"
def create(self):
"""
GSX validates the information and if all of the validations go through,
it obtains a quote for the repair and creates the carry-in repair.
"""
+ self._namespace = "emea:"
return self._submit("repairData", "CreateCarryIn", "repairConfirmation")
def update(self, newdata):
@@ -240,10 +240,8 @@ class IndirectOnsiteRepair(Repair):
Once the repair is submitted, it is assigned a confirmation number,
which is a reference number to identify the repair.
"""
-
- _namespace = "asp:"
-
def create(self):
+ self._namespace = "asp:"
if hasattr(self, "shipTo"): # Carry-In and OnSite use different field names!
self.shippingLocation = self.shipTo
del(self._data['shipTo'])