Package fliesclient :: Package flieslib :: Module docservice :: Class DocumentService
[hide private]
[frames] | no frames]

Class DocumentService

source code

Instance Methods [hide private]
 
__init__(self, projects) source code
 
get_file_list(self, projectid, iterationid) source code
 
commit_translation(self, projectid, iterationid, resources)
Push the json object to flies server
source code
 
retrieve_translation(self, lang, projectid, iterationid, file)
Get translation content of file from Flies server
source code
 
update_translation(self, projectid, iterationid) source code
Method Details [hide private]

commit_translation(self, projectid, iterationid, resources)

source code 

Push the json object to flies server

Parameters:
  • projectid - id of project
  • iterationid - id of iteration
  • resources - json object of the content that want to commit to flies server
Returns:
True
Raises:

retrieve_translation(self, lang, projectid, iterationid, file)

source code 

Get translation content of file from Flies server

Parameters:
  • lang - language
  • projectid - Id of project
  • iterationid - Id of iteration
  • file - name of document
Returns:
translation content of document
Raises: