myGengo/mygengo-python — pull request #5 by shawnps (2012-05-18 05:07:36+00:00)
Title: Various minor fixups

Summary:

* examples/getTranslationJobPreview.py renamed to examples/getTranslationJobPreviewImage.py
* examples/getTranslationJobPreviewImage.py now uses getTranslationJobPreviewImage function as opposed to nonexistent getTranslationJobPreviewImage function.
* change getTranslationJobPreview => getTranslationJobPreviewImage in README.md as well.
* mygengo_test_keys_example.py and mygengo_test_keys.py changed to test_keys_example.py and test_keys.py in mygengo/test_keys_example.py (changed this because tests.py imports test_keys, not mygengo_test_keys).

This unfortunately does not fix the fact that getTranslationJobPreviewImage.py does not work anyway because the API returns a raw JPEG image stream, which throws a ValueError because mygengo.py is trying to JSON decode it.