2 Commits

Author SHA1 Message Date
Steve Kowalik
04ffd50543 Check if version is read-only when querying Zanata
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
2015-09-25 15:48:41 +10:00
Steve Kowalik
c7836c092e Add a new script that queries for a Zanata version
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
2015-09-24 16:23:54 +10:00