Commit d41f6522 authored by Vincent Pelletier's avatar Vincent Pelletier

Workaround instanciation from inside marshaller.

parent 13a537c8
......@@ -636,7 +636,11 @@ class slap:
self._connection_helper.GET('/registerComputerPartition?' \
'computer_reference=%s&computer_partition_reference=%s' % (
computer_guid, partition_id))
return xml_marshaller.loads(self._connection_helper.response.read())
result = xml_marshaller.loads(self._connection_helper.response.read())
# XXX: dirty hack to make computer partition usable. xml_marshaller is too
# low-level for our needs here.
result._connection_helper = self._connection_helper
return result
def registerOpenOrder(self):
return OpenOrder(connection_helper=self._connection_helper)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment