From 40cfeb5322012da8476a6047b78e233af5d29ec7 Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Thu, 28 Mar 2013 10:12:32 +0200 Subject: Return Python date type from _process --- gsxws.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'gsxws.py') 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 -- cgit v1.2.3