aboutsummaryrefslogtreecommitdiffstats
path: root/gsxws/core.py
diff options
context:
space:
mode:
authorFilipp Lepalaan <f@230.to>2013-05-20 01:00:57 +0300
committerFilipp Lepalaan <f@230.to>2013-05-20 01:00:57 +0300
commit1b8089d3307df99e5e12e961ada11072a9c3461e (patch)
tree8bab7d59935a36bd66383ba8e3397d2bc1cc09a7 /gsxws/core.py
parentafd1136818b9a99b187c2c7adc5c369172eda22e (diff)
downloadpy-gsxws-1b8089d3307df99e5e12e961ada11072a9c3461e.tar.gz
py-gsxws-1b8089d3307df99e5e12e961ada11072a9c3461e.tar.bz2
py-gsxws-1b8089d3307df99e5e12e961ada11072a9c3461e.zip
Fix for return_label
Diffstat (limited to 'gsxws/core.py')
-rw-r--r--gsxws/core.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/gsxws/core.py b/gsxws/core.py
index 63b9f81..1b7da60 100644
--- a/gsxws/core.py
+++ b/gsxws/core.py
@@ -247,9 +247,10 @@ class GsxRequest(object):
if self._request == request_name:
"Some requests don't have a top-level container"
- self.data = list(self.data)[0]
-
- request.append(self.data)
+ #self.data = list(self.data)[0]
+ request.extend(self.data)
+ else:
+ request.append(self.data)
data = ET.tostring(self.env, "UTF-8")
res = self._send(method, data)
@@ -322,6 +323,7 @@ class GsxObject(object):
raise AttributeError("Invalid attribute: %s" % name)
def _submit(self, arg, method, ret=None, raw=False):
+ "Shortcut for submitting a GsxObject"
self._req = GsxRequest(**{arg: self})
result = self._req._submit(method, ret, raw)
return result if len(result) > 1 else result[0]