99 @param fx service name (string) |
99 @param fx service name (string) |
100 @param lang language (string) |
100 @param lang language (string) |
101 @param fn file name (string) |
101 @param fn file name (string) |
102 @param msg message text (string) |
102 @param msg message text (string) |
103 """ |
103 """ |
104 if fx == 'style' and lang == 'Python2': |
104 if fx in ['style', 'batch_style'] and lang == 'Python2': |
105 self.__serviceError(fn, msg) |
105 if fx == 'style': |
|
106 self.__serviceError(fn, msg) |
|
107 else: |
|
108 self.__serviceError(self.tr("Python 2 batch check"), msg) |
|
109 self.batchJobDone(fx, lang) |
106 |
110 |
107 def serviceErrorPy3(self, fx, lang, fn, msg): |
111 def serviceErrorPy3(self, fx, lang, fn, msg): |
108 """ |
112 """ |
109 Public slot handling service errors for Python 2. |
113 Public slot handling service errors for Python 2. |
110 |
114 |
111 @param fx service name (string) |
115 @param fx service name (string) |
112 @param lang language (string) |
116 @param lang language (string) |
113 @param fn file name (string) |
117 @param fn file name (string) |
114 @param msg message text (string) |
118 @param msg message text (string) |
115 """ |
119 """ |
116 if fx == 'style' and lang == 'Python3': |
120 if fx in ['style', 'batch_style'] and lang == 'Python3': |
117 self.__serviceError(fn, msg) |
121 if fx == 'style': |
|
122 self.__serviceError(fn, msg) |
|
123 else: |
|
124 self.__serviceError(self.tr("Python 3 batch check"), msg) |
|
125 self.batchJobDone(fx, lang) |
118 |
126 |
119 def batchJobDone(self, fx, lang): |
127 def batchJobDone(self, fx, lang): |
120 """ |
128 """ |
121 Public slot handling the completion of a batch job. |
129 Public slot handling the completion of a batch job. |
122 |
130 |
123 @param fx service name (string) |
131 @param fx service name (string) |
124 @param lang language (string) |
132 @param lang language (string) |
125 """ |
133 """ |
126 if fx == 'style': |
134 if fx in ['style', 'batch_style']: |
127 if lang in self.queuedBatches: |
135 if lang in self.queuedBatches: |
128 self.queuedBatches.remove(lang) |
136 self.queuedBatches.remove(lang) |
129 # prevent sending the signal multiple times |
137 # prevent sending the signal multiple times |
130 if len(self.queuedBatches) == 0 and not self.batchesFinished: |
138 if len(self.queuedBatches) == 0 and not self.batchesFinished: |
131 self.batchFinished.emit() |
139 self.batchFinished.emit() |