From af15ea8ecd4c649a43b82aa74f907cc9b63e1f44 Mon Sep 17 00:00:00 2001 From: "Brian C. Lane" Date: Tue, 24 Feb 2015 11:08:17 -0800 Subject: [PATCH] Fix GenericPush.run references to self for push_trans_only This allows pushing specific translations to work. eg: zanata push --push-type target --lang af --- zanataclient/pushcmd.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/zanataclient/pushcmd.py b/zanataclient/pushcmd.py index a285fb8..a712b3e 100644 --- a/zanataclient/pushcmd.py +++ b/zanataclient/pushcmd.py @@ -420,7 +420,7 @@ class GenericPush(Push): def __init__(self,*args,**kargs): super(GenericPush,self).__init__(*args,**kargs) - + def run(self): pushtrans = None push_trans_only = False @@ -447,9 +447,9 @@ def run(self): push_trans_only = True if push_trans_only: - transfolder = self.process_transdir(command_options, "") - merge = self.process_merge(command_options) - lang_list = self.get_lang_list(self.command_options, project_config) + transfolder = self.process_transdir(self.command_options, "") + merge = self.process_merge(self.command_options) + lang_list = self.get_lang_list(self.command_options, self.project_config) if self.project_config.has_key('locale_map'): locale_map = self.project_config['locale_map']