Change I2d1638296f264784333ba1745f75490d81b9ca00 overwrote the content
flag and now the script does not return JSON as expected but XML.
Change it to continue returning JSON.
Also, use newer ProjectVersionResource REST API since the old one is
deprecated.
Change-Id: Idf493813d20d40cc92aaaffbe23db227eb1a213a
Extend query-zanata-project-version.py to parse the response it gets
back from the Zanata server, and to also exit 1 if the version is marked
as read-only, saves the proposal slave performing the work if the server
will reject the upload anyway.
Change-Id: I9f66bd34c6d34703b47836f91737282193beb0af
To allow us to check if a version exists for a Zanata project without
requiring us to create a zanata.xml first, add a small script that
uses the Zanata REST API to query for its existance.
Make use it instead of the zanata-cli in upstream_translation_update,
since we can't create a zanata.xml if the version doesn't exist.
Change-Id: I93a72845aa705ce6b72acec9b5d62b5565368ab0