aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFilipp Lepalaan <f@0x00.co>2013-04-03 11:26:16 +0300
committerFilipp Lepalaan <f@0x00.co>2013-04-03 11:26:16 +0300
commit8f5012d5859eeb59af90814efede23c1f5af49a4 (patch)
tree118b6688ef5864f3c63ed1849060899ff4673fa0
parent131c195a5ff86246f9ec1ec862a07043a1c3005b (diff)
downloadpy-gsxws-8f5012d5859eeb59af90814efede23c1f5af49a4.tar.gz
py-gsxws-8f5012d5859eeb59af90814efede23c1f5af49a4.tar.bz2
py-gsxws-8f5012d5859eeb59af90814efede23c1f5af49a4.zip
Take args and kwargs in Product.init
-rwxr-xr-xgsxws.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/gsxws.py b/gsxws.py
index a623808..670e794 100755
--- a/gsxws.py
+++ b/gsxws.py
@@ -803,8 +803,10 @@ class Product(GsxObject):
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)
+
+ if SESSION:
+ self.dt.serialNumber = serialNumber
+ self.lookup = Lookup(serialNumber=self.serialNumber)
def get_model(self):
"""