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/')