rhec/pyelasticsearch — pull request #11 by toastdriven (2011-12-31 07:20:27+00:00)
Title: Conversion Methods

Added two methods (``from_python`` & ``to_python``) to allow for easier data conversion. As it stands, sending a non-unicode string or a date/datetime causes the JSON encoder to fall down. This way, the person sending/receiving the data can call those methods & use/get native Python types.