aparo/pyes — pull request #228 by smaddineni (2012-11-09 21:21:47+00:00)
Title: updates when when connection is not localhost in generate_model

updates also include a circular reference for encoder

envs/govini-web/lib/python2.6/site-packages/pyes/es.py", line 1013, in index return self._send_request(request_method, path, doc, querystring_args) File "/opt/virtual-envs/govini-web/lib/python2.6/site-packages/pyes/es.py", line 381, in _send_request body = json.dumps(body, cls=self.encoder) File "/opt/virtual-envs/govini-web/lib/python2.6/site-packages/simplejson/__init__.py", line 334, in dumps **kw).encode(obj) File "/opt/virtual-envs/govini-web/lib/python2.6/site-packages/simplejson/encoder.py", line 237, in encode chunks = self.iterencode(o, _one_shot=True) File "/opt/virtual-envs/govini-web/lib/python2.6/site-packages/simplejson/encoder.py", line 311, in iterencode return _iterencode(o, 0) ValueError: Circular reference detected