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: Addressed comments Created Sept. 17, 2019, 12:22 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/projects_handler.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 26d3db4906d8baf3a8b4d40f5503d312edf4a924..0b4282dd7825f10d56d2f9b33ea0d46ca687b93b 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/projects_handler.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld