Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: cms/translations/xtm/constants.py

Issue 29968558: Issue 7037 - [XTM Integration] Make REST API url customizable
Patch Set: Merged with changes from 7039 Created Sept. 17, 2019, 1:37 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cms/translations/xtm/cli.py ('k') | cms/translations/xtm/utils.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cms/translations/xtm/constants.py
diff --git a/cms/translations/xtm/constants.py b/cms/translations/xtm/constants.py
index 8167b04b5b0ea7b968b98a662cab18f3d86d06b2..41e3f1a87295d81cb1d75ea88eeedaa4ba3e4858 100644
--- a/cms/translations/xtm/constants.py
+++ b/cms/translations/xtm/constants.py
@@ -101,6 +101,7 @@ class ArgumentsHelp:
PROJECT_SOURCE_DIR = 'The source directory of the website.'
PROJECT_DOWNLOAD = ('Download the translation files from a project and '
'save them to disk.')
+ API_URL = 'The url used when connecting to the API.'
class ProjectCreate:
MAIN = 'Sub-mode used to create a new project with XTM Cloud.'
@@ -125,6 +126,7 @@ class Config:
PROJECT_OPTION = 'project_id'
MAIN_SECTION = 'general'
DEFAULT_LOCALE_OPTION = 'defaultlocale'
+ URL_OPTION = 'url'
SUPPORTED_LOCALES = (
@@ -173,3 +175,5 @@ UNDER_ANALYSIS_MESSAGE = ('403: {"reason":"Project is under analysis. '
'Please wait for analysis end."}')
MAX_WAIT_TIME = 10
+
+API_URL = 'https://wstest2.xtm-intl.com/rest-api/'
« no previous file with comments | « cms/translations/xtm/cli.py ('k') | cms/translations/xtm/utils.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld