Package fliesclient :: Module flies :: Class FliesConsole
[hide private]
[frames] | no frames]

Class FliesConsole

source code

Instance Methods [hide private]
 
__init__(self) source code
 
_print_usage(self) source code
 
_print_help_info(self, args)
Output the general help information or the help information for each command
source code
 
_command_help(self, command) source code
 
_list_help(self) source code
 
_projec_info_help(self) source code
 
_project_create_help(self) source code
 
_iteration_info_help(self) source code
 
_iteration_create_help(self) source code
 
_publican_push_help(self) source code
 
_publican_pull_help(self) source code
 
_list_projects(self)
List the information of all the project on the flies server
source code
 
_get_project(self)
Retrieve the information of a project
source code
 
_get_iteration(self)
Retrieve the information of a project iteration.
source code
 
_create_project(self, args)
Create project with the project id
source code
 
_create_iteration(self, args)
Create iteration with the iteration id
source code
 
_list_folder(self, tmlpath) source code
 
_create_resource(self, filepath)
Parse the pot file and create the request body
source code
 
_push_publican(self, args)
Push the content of publican files to a Project iteration on Flies server
source code
 
_hash_matches(self, message, id) source code
 
_create_pofile(self, lang, file, translations, tmlpath, outpath)
Create PO file based on the POT file in POT folder
source code
 
_pull_publican(self, args)
Retrieve the content of documents in a Project iteration from Flies server.
source code
 
_remove_project(self) source code
 
_remove_iteration(self) source code
 
_project_status(self) source code
 
_process_command_line(self)
Parse the command line to generate command options and sub_command
source code
 
run(self) source code
Method Details [hide private]

_print_help_info(self, args)

source code 

Output the general help information or the help information for each command

Parameters:
  • args - the name of command and sub command

_create_project(self, args)

source code 

Create project with the project id

Parameters:
  • args - project id

_create_iteration(self, args)

source code 

Create iteration with the iteration id

Parameters:
  • args - iteration id

_create_resource(self, filepath)

source code 

Parse the pot file and create the request body

Parameters:
  • filepath - the path of the pot file

_push_publican(self, args)

source code 

Push the content of publican files to a Project iteration on Flies server

Parameters:
  • args - name of the publican file

_create_pofile(self, lang, file, translations, tmlpath, outpath)

source code 

Create PO file based on the POT file in POT folder

Parameters:
  • lang - language
  • translations - the json object of the content retrieved from server
  • tmlpath - the pot folder
  • outpath - the po folder for output

_pull_publican(self, args)

source code 

Retrieve the content of documents in a Project iteration from Flies server. If the name of publican file is specified, the content of that file will be pulled from server. Otherwise, all the document of that Project iteration will be pulled from server.

Parameters:
  • args - the name of publican file