diff options
author | Filipp Lepalaan <f@0x00.co> | 2013-04-03 11:23:05 +0300 |
---|---|---|
committer | Filipp Lepalaan <f@0x00.co> | 2013-04-03 11:23:05 +0300 |
commit | 131c195a5ff86246f9ec1ec862a07043a1c3005b (patch) | |
tree | d7763ae2de0be8fb299b0ce08a0d41c24cd321fb | |
parent | a250685f1752d9eecb3b032f3b2dc3c7378acd90 (diff) | |
download | py-gsxws-131c195a5ff86246f9ec1ec862a07043a1c3005b.tar.gz py-gsxws-131c195a5ff86246f9ec1ec862a07043a1c3005b.tar.bz2 py-gsxws-131c195a5ff86246f9ec1ec862a07043a1c3005b.zip |
Take args and kwargs in Product.init
-rwxr-xr-x | gsxws.py | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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) |