4 Commits

Author SHA1 Message Date
Andreas Jaeger
47f41491d7 Fix query-zanata
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
2017-03-21 10:57:46 +01:00
zhangyanxian
aa984d4063 Fix typo in the query-zanata-project-version.py
Change-Id: Ifa7ced20f8c47971bf943b79924cb8c289447d3a
2016-08-10 07:39:31 +00:00
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