diff options
-rw-r--r-- | gsxws/core.py | 2 | ||||
-rw-r--r-- | gsxws/repairs.py | 1 | ||||
-rw-r--r-- | gsxws/returns.py | 5 |
3 files changed, 3 insertions, 5 deletions
diff --git a/gsxws/core.py b/gsxws/core.py index f586606..b6b237a 100644 --- a/gsxws/core.py +++ b/gsxws/core.py @@ -155,8 +155,8 @@ class GsxCache(object): def __init__(self, key, expires=timedelta(minutes=20)): self.key = key self.expires = expires - self.shelf = shelve.open(self.filename, protocol=-1) self.now = datetime.now() + self.shelf = shelve.open(self.filename, protocol=-1) if not self.shelf.get(key): # Initialize the key diff --git a/gsxws/repairs.py b/gsxws/repairs.py index 4b752ab..9711689 100644 --- a/gsxws/repairs.py +++ b/gsxws/repairs.py @@ -37,7 +37,6 @@ class Customer(GsxObject): class RepairOrderLine(GsxObject): partNumber = "" - partNumber = "" comptiaCode = "" comptiaModifier = "" diff --git a/gsxws/returns.py b/gsxws/returns.py index f46690e..0810c15 100644 --- a/gsxws/returns.py +++ b/gsxws/returns.py @@ -120,9 +120,8 @@ class Return(GsxObject): 'comptiaModifier': 'A',\ 'returnType': 2}]) """ - rd = GsxObject(repairConfirmationNumber=confirmation) - rd.orderLines = parts - self.repairData = rd + self.repairConfirmationNumber = confirmation + self.orderLines = parts self._submit("repairData", "UpdateCarryIn", "repairConfirmation") return self._req.objects[0] |