diff options
author | Filipp Lepalaan <f@230.to> | 2013-07-14 21:09:48 +0300 |
---|---|---|
committer | Filipp Lepalaan <f@230.to> | 2013-07-14 21:09:48 +0300 |
commit | 2eadde880621c39477d931387c9e2c934c5030da (patch) | |
tree | cd018af05e0b0f8ad7a584452de59beac2ddde63 /gsxws/lookups.py | |
parent | 4ad63f58ae722ecef4bdc9571a93239724ce35cc (diff) | |
download | py-gsxws-2eadde880621c39477d931387c9e2c934c5030da.tar.gz py-gsxws-2eadde880621c39477d931387c9e2c934c5030da.tar.bz2 py-gsxws-2eadde880621c39477d931387c9e2c934c5030da.zip |
Moving to lxml
Diffstat (limited to 'gsxws/lookups.py')
-rw-r--r-- | gsxws/lookups.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gsxws/lookups.py b/gsxws/lookups.py index 3d9814d..7513151 100644 --- a/gsxws/lookups.py +++ b/gsxws/lookups.py @@ -14,7 +14,8 @@ class Lookup(GsxObject): self._namespace = "asp:" def lookup(self, method, response="lookupResponseData"): - return self._submit("lookupRequestData", method, response) + result = self._submit("lookupRequestData", method, response) + return [result] if isinstance(result, dict) else result def parts(self): """ @@ -36,8 +37,7 @@ class Lookup(GsxObject): >>> Lookup(serialNumber='DGKFL06JDHJP').repairs() # doctest: +ELLIPSIS [{'customerName': 'Lepalaan,Filipp',... """ - result = self.lookup("RepairLookup") - return [result] if isinstance(result, dict) else result + return self.lookup("RepairLookup") def invoices(self): """ |