diff options
author | Filipp Lepalaan <f@0x00.co> | 2013-03-28 10:12:32 +0200 |
---|---|---|
committer | Filipp Lepalaan <f@0x00.co> | 2013-03-28 10:12:32 +0200 |
commit | 40cfeb5322012da8476a6047b78e233af5d29ec7 (patch) | |
tree | 8b8265fadf46580c232b505972f2f1bae32056d5 /gsxws.py | |
parent | 456615698e9b6b9257b4743d8453fb56b85c5b67 (diff) | |
download | py-gsxws-40cfeb5322012da8476a6047b78e233af5d29ec7.tar.gz py-gsxws-40cfeb5322012da8476a6047b78e233af5d29ec7.tar.bz2 py-gsxws-40cfeb5322012da8476a6047b78e233af5d29ec7.zip |
Return Python date type from _process
Diffstat (limited to 'gsxws.py')
-rwxr-xr-x | gsxws.py | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 |