aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gsxws/products.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/gsxws/products.py b/gsxws/products.py
index 252d97e..c62021b 100644
--- a/gsxws/products.py
+++ b/gsxws/products.py
@@ -54,6 +54,9 @@ class Product(GsxObject):
>>> Product('WQ8094DW0P1').warranty([(u'661-5070', u'Z26',)]) # doctest: +ELLIPSIS
{'warrantyStatus': 'Out Of Warranty (No Coverage)',...
"""
+ if hasattr(self, "alternateDeviceId"):
+ if not self.serialNumber:
+ self.activation()
try:
self.partNumbers = []
for k, v in parts:
@@ -118,10 +121,11 @@ class Product(GsxObject):
GsxError: Provided serial number does not belong to an iOS Device...
"""
self._namespace = "glob:"
- act = self._submit("FetchIOSActivationDetailsRequest",
- "FetchIOSActivationDetails",
- "activationDetailsInfo")
- return act
+ ad = self._submit("FetchIOSActivationDetailsRequest",
+ "FetchIOSActivationDetails",
+ "activationDetailsInfo")
+ self.serialNumber = ad.serialNumber
+ return ad
if __name__ == '__main__':