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

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

Issue 29908581: Issue #7036 - [XTM Integration] Add support for providing workflow name (Closed)
Patch Set: Created Oct. 12, 2018, 2:03 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
Index: cms/translations/xtm/constants.py
diff --git a/cms/translations/xtm/constants.py b/cms/translations/xtm/constants.py
index 44728e56eed10a039c7e29519d68b6f2bee0ba09..26d3db4906d8baf3a8b4d40f5503d312edf4a924 100644
--- a/cms/translations/xtm/constants.py
+++ b/cms/translations/xtm/constants.py
@@ -64,6 +64,14 @@ class ErrorMessages:
'Please generate them and then try again!')
COULD_NOT_SAVE_FILES = ('Error: Could not save the downloaded files to '
'disk!')
+ WORKFLOW_NAME_AND_ID_PROVIDED = ('Error: Provide only one of '
+ '"--workflow-name" and "--workflow-id" '
+ 'at a time, not both.')
+ NO_WORKFLOW_INFO = ('Error: No workflow information provided. Please '
+ 'use one of "--workflow-id" or "--workflow-name" to '
+ 'do that.')
+ NO_WORKFLOW_FOR_NAME = ('Error: Could not find any workflow with the '
+ 'name "{}"')
class WarningMessages:
@@ -104,6 +112,7 @@ class ArgumentsHelp:
SOURCE = 'The source language for this project. Default "en_US".'
SAVE_ID = ('Whether to save the id of the project to settings.ini or '
'not. Default False.')
+ WORKFLOW_NAME = 'The name of the workflow used in the project.'
class ProjectUpload:
MAIN = 'Sub-mode used to upload files to an XTM Cloud project.'

Powered by Google App Engine
This is Rietveld