aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFilipp Lepalaan <f@0x00.co>2013-03-28 10:12:32 +0200
committerFilipp Lepalaan <f@0x00.co>2013-03-28 10:12:32 +0200
commit40cfeb5322012da8476a6047b78e233af5d29ec7 (patch)
tree8b8265fadf46580c232b505972f2f1bae32056d5
parent456615698e9b6b9257b4743d8453fb56b85c5b67 (diff)
downloadpy-gsxws-40cfeb5322012da8476a6047b78e233af5d29ec7.tar.gz
py-gsxws-40cfeb5322012da8476a6047b78e233af5d29ec7.tar.bz2
py-gsxws-40cfeb5322012da8476a6047b78e233af5d29ec7.zip
Return Python date type from _process
-rwxr-xr-xgsxws.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/gsxws.py b/gsxws.py
index 52a8ce6..a913ebe 100755
--- a/gsxws.py
+++ b/gsxws.py
@@ -161,10 +161,10 @@ class GsxObject(object):
v = base64.b64decode(v)
if isinstance(v, basestring):
- # convert dates to native Python
+ # convert dates to native Python types
if re.search('^\d{2}/\d{2}/\d{2}$', v):
m, d, y = v.split('/')
- v = date(2000+int(y), int(m), int(d)).isoformat()
+ v = date(2000+int(y), int(m), int(d))
# strip currency prefix and munge into float
if re.search('Price$', k):
@@ -752,6 +752,7 @@ class Product(GsxObject):
result = self.submit("WarrantyStatus", dt, "warrantyDetailInfo")
return self._process(result)
+
def get_activation(self):
"""
The Fetch iOS Activation Details API is used to