diff options
author | Filipp Lepalaan <f@0x00.co> | 2013-04-03 11:26:16 +0300 |
---|---|---|
committer | Filipp Lepalaan <f@0x00.co> | 2013-04-03 11:26:16 +0300 |
commit | 8f5012d5859eeb59af90814efede23c1f5af49a4 (patch) | |
tree | 118b6688ef5864f3c63ed1849060899ff4673fa0 | |
parent | 131c195a5ff86246f9ec1ec862a07043a1c3005b (diff) | |
download | py-gsxws-8f5012d5859eeb59af90814efede23c1f5af49a4.tar.gz py-gsxws-8f5012d5859eeb59af90814efede23c1f5af49a4.tar.bz2 py-gsxws-8f5012d5859eeb59af90814efede23c1f5af49a4.zip |
Take args and kwargs in Product.init
-rwxr-xr-x | gsxws.py | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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): """ |