263 f = open(self.pluginRepositoryFile, "r", encoding = "utf-8") |
263 f = open(self.pluginRepositoryFile, "r", encoding = "utf-8") |
264 line = f.readline() |
264 line = f.readline() |
265 dtdLine = f.readline() |
265 dtdLine = f.readline() |
266 f.close() |
266 f.close() |
267 except IOError: |
267 except IOError: |
268 QMessageBox.critical(None, |
268 E5MessageBox.critical(self, |
269 self.trUtf8("Read plugins repository file"), |
269 self.trUtf8("Read plugins repository file"), |
270 self.trUtf8("<p>The plugins repository file <b>{0}</b> " |
270 self.trUtf8("<p>The plugins repository file <b>{0}</b> " |
271 "could not be read. Select Update</p>")\ |
271 "could not be read. Select Update</p>")\ |
272 .format(self.pluginRepositoryFile)) |
272 .format(self.pluginRepositoryFile)) |
273 return |
273 return |
293 buf = io.StringIO(f.read()) |
293 buf = io.StringIO(f.read()) |
294 parser.parse(buf) |
294 parser.parse(buf) |
295 finally: |
295 finally: |
296 f.close() |
296 f.close() |
297 except IOError: |
297 except IOError: |
298 QMessageBox.critical(None, |
298 E5MessageBox.critical(self, |
299 self.trUtf8("Read plugins repository file"), |
299 self.trUtf8("Read plugins repository file"), |
300 self.trUtf8("<p>The plugins repository file <b>{0}</b> " |
300 self.trUtf8("<p>The plugins repository file <b>{0}</b> " |
301 "could not be read. Select Update</p>")\ |
301 "could not be read. Select Update</p>")\ |
302 .format(self.pluginRepositoryFile)) |
302 .format(self.pluginRepositoryFile)) |
303 return |
303 return |
309 self.repositoryList.resizeColumnToContents(0) |
309 self.repositoryList.resizeColumnToContents(0) |
310 self.repositoryList.resizeColumnToContents(1) |
310 self.repositoryList.resizeColumnToContents(1) |
311 self.repositoryList.resizeColumnToContents(2) |
311 self.repositoryList.resizeColumnToContents(2) |
312 self.__resortRepositoryList() |
312 self.__resortRepositoryList() |
313 else: |
313 else: |
314 QMessageBox.critical(None, |
314 E5MessageBox.critical(self, |
315 self.trUtf8("Read plugins repository file"), |
315 self.trUtf8("Read plugins repository file"), |
316 self.trUtf8("<p>The plugins repository file <b>{0}</b> " |
316 self.trUtf8("<p>The plugins repository file <b>{0}</b> " |
317 "has an unsupported format.</p>")\ |
317 "has an unsupported format.</p>")\ |
318 .format(self.pluginRepositoryFile)) |
318 .format(self.pluginRepositoryFile)) |
319 else: |
319 else: |
593 args = [] |
593 args = [] |
594 args.append(applPath) |
594 args.append(applPath) |
595 args += self.cw.getDownloadedPlugins() |
595 args += self.cw.getDownloadedPlugins() |
596 |
596 |
597 if not os.path.isfile(applPath) or not proc.startDetached(sys.executable, args): |
597 if not os.path.isfile(applPath) or not proc.startDetached(sys.executable, args): |
598 QMessageBox.critical(self, |
598 E5MessageBox.critical(self, |
599 self.trUtf8('Process Generation Error'), |
599 self.trUtf8('Process Generation Error'), |
600 self.trUtf8( |
600 self.trUtf8( |
601 '<p>Could not start the process.<br>' |
601 '<p>Could not start the process.<br>' |
602 'Ensure that it is available as <b>{0}</b>.</p>' |
602 'Ensure that it is available as <b>{0}</b>.</p>' |
603 ).format(applPath), |
603 ).format(applPath), |