Skip to content

Commit

Permalink
Fixed rhbz#827316, failed to push pot with msgid_plural against 1.6 s…
Browse files Browse the repository at this point in the history
…erver
  • Loading branch information
jamesni committed Jun 4, 2012
1 parent 2030547 commit 70fe52f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions zanataclient/pushcmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ def create_zanatacmd(self, url, command_options):
if server_version:
version_info = version_info+", zanata server API version: "+server_version

return zanatacmd, version_info, username
return zanatacmd, version_info, username, plural_support

def log_message(self, url, version_info, project_id, version_id, username):
log.info("zanata server: %s" % url)
Expand All @@ -368,7 +368,7 @@ def run(self, command_options, args):
filelist = []

url, project_id, version_id, project_type, project_config = self.get_projectinfo(command_options)
zanatacmd, version_info, username = self.create_zanatacmd(url, command_options)
zanatacmd, version_info, username, plural_support = self.create_zanatacmd(url, command_options)
self.log_message(url, version_info, project_id, version_id, username)
zanatacmd.verify_project(project_id, version_id)

Expand Down Expand Up @@ -481,7 +481,7 @@ def run(self, command_options, args):
filelist = []

url, project_id, version_id, project_type, project_config = self.get_projectinfo(command_options)
zanatacmd, version_info, username = self.create_zanatacmd(url, command_options)
zanatacmd, version_info, username, plural_support = self.create_zanatacmd(url, command_options)
self.log_message(url, version_info, project_id, version_id, username)
zanatacmd.verify_project(project_id, version_id)

Expand Down Expand Up @@ -537,7 +537,7 @@ def run(self, command_options, args):
filelist = []

url, project_id, version_id, project_type, project_config = self.get_projectinfo(command_options)
zanatacmd, version_info, username = self.create_zanatacmd(url, command_options)
zanatacmd, version_info, username, plural_support = self.create_zanatacmd(url, command_options)
self.log_message(url, version_info, project_id, version_id, username)
zanatacmd.verify_project(project_id, version_id)

Expand Down
2 changes: 1 addition & 1 deletion zanataclient/zanatalib/docservice.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def commit_template(self, projectid, iterationid, resources, copytrans):
elif res['status'] == '403':
raise UnexpectedStatusException('Error 403', content)
elif res['status'] == '500':
raise InternalServerError('Error 500', 'An internal server error happens')
raise InternalServerError('Error 500', content)
else:
raise UnexpectedStatusException('Error', 'Unexpected Status, failed to push')

Expand Down

0 comments on commit 70fe52f

Please sign in to comment.