From daeab05a2cfabd3c1771bf0dd4f73486a2b70ccc Mon Sep 17 00:00:00 2001 From: Matt Meshulam Date: Mon, 22 Sep 2014 15:16:28 -0500 Subject: [PATCH] Fix build bug and return type for create_device --- setup.py | 3 ++- tempoiq/client.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 460d37d..9b06203 100644 --- a/setup.py +++ b/setup.py @@ -29,7 +29,8 @@ author_email="aaron.brenzel@tempoiq.com", url="http://github.com/tempoiq/tempoiq-python/", description="A client for the TempoDB API", - packages=["tempoiq", "tempoiq.temporal", "tempoiq.protocol"], + packages=["tempoiq", "tempoiq.temporal", "tempoiq.protocol", + "tempoiq.protocol.query"], long_description="A Python client for the TempoIQ API.", dependency_links=[ ], diff --git a/tempoiq/client.py b/tempoiq/client.py index 82a22dd..90f1adb 100644 --- a/tempoiq/client.py +++ b/tempoiq/client.py @@ -60,7 +60,8 @@ def __init__(self, endpoint): def create_device(self, device): url = urlparse.urljoin(self.endpoint.base_url, 'devices/') j = json.dumps(device, default=self.create_encoder.default) - return self.endpoint.post(url, j) + resp = self.endpoint.post(url, j) + return Response(resp, self.endpoint) def delete_device(self, query): url = urlparse.urljoin(self.endpoint.base_url, 'devices/')