aboutsummaryrefslogtreecommitdiffstats
path: root/gsxws.py
diff options
context:
space:
mode:
authorFilipp Lepalaan <f@0x00.co>2013-04-03 11:23:05 +0300
committerFilipp Lepalaan <f@0x00.co>2013-04-03 11:23:05 +0300
commit131c195a5ff86246f9ec1ec862a07043a1c3005b (patch)
treed7763ae2de0be8fb299b0ce08a0d41c24cd321fb /gsxws.py
parenta250685f1752d9eecb3b032f3b2dc3c7378acd90 (diff)
downloadpy-gsxws-131c195a5ff86246f9ec1ec862a07043a1c3005b.tar.gz
py-gsxws-131c195a5ff86246f9ec1ec862a07043a1c3005b.tar.bz2
py-gsxws-131c195a5ff86246f9ec1ec862a07043a1c3005b.zip
Take args and kwargs in Product.init
Diffstat (limited to 'gsxws.py')
-rwxr-xr-xgsxws.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/gsxws.py b/gsxws.py
index f6c635e..a623808 100755
--- a/gsxws.py
+++ b/gsxws.py
@@ -577,6 +577,7 @@ class Part(GsxObject):
url = 'https://km.support.apple.com.edgekey.net/kb/imageService.jsp?image=%s_350_350.gif' % self.partNumber
p = urlparse.urlparse(url)
filename = p.query.split('=')[1]
+
tmpfile = tempfile.NamedTemporaryFile(suffix=filename)
try:
@@ -799,8 +800,8 @@ class Product(GsxObject):
dt = 'ns7:unitDetailType'
- def __init__(self, serialNumber):
- super(Product, self).__init__()
+ def __init__(self, serialNumber, *args, **kwargs):
+ super(Product, self).__init__(*args, **kwargs)
self.serialNumber = serialNumber
self.dt.serialNumber = serialNumber
self.lookup = Lookup(serialNumber=self.serialNumber)