PluginManager/PluginRepositoryDialog.py

branch
Py2 comp.
changeset 3058
0a02c433f52d
parent 3057
10516539f238
parent 3022
57179e4cdadd
child 3060
5883ce99ee12
diff -r 10516539f238 -r 0a02c433f52d PluginManager/PluginRepositoryDialog.py
--- a/PluginManager/PluginRepositoryDialog.py	Fri Oct 18 23:00:41 2013 +0200
+++ b/PluginManager/PluginRepositoryDialog.py	Fri Nov 01 15:48:48 2013 +0100
@@ -72,8 +72,8 @@
         self.__downloadButton = self.buttonBox.addButton(
             self.trUtf8("Download"), QDialogButtonBox.ActionRole)
         self.__downloadButton.setEnabled(False)
-        self.__downloadInstallButton = \
-            self.buttonBox.addButton(self.trUtf8("Download && Install"),
+        self.__downloadInstallButton = self.buttonBox.addButton(
+            self.trUtf8("Download && Install"),
             QDialogButtonBox.ActionRole)
         self.__downloadInstallButton.setEnabled(False)
         self.__downloadCancelButton = self.buttonBox.addButton(
@@ -171,7 +171,8 @@
             return
         
         self.urlEdit.setText(current.data(0, urlRole) or "")
-        self.descriptionEdit.setPlainText(current.data(0, descrRole) and \
+        self.descriptionEdit.setPlainText(
+            current.data(0, descrRole) and \
             self.__formatDescription(current.data(0, descrRole)) or "")
         self.authorEdit.setText(current.data(0, authorRole) or "")
     
@@ -272,7 +273,8 @@
         else:
             ui = None
         if ui and ui.notificationsEnabled():
-            ui.showNotification(UI.PixmapCache.getPixmap("plugin48.png"),
+            ui.showNotification(
+                UI.PixmapCache.getPixmap("plugin48.png"),
                 self.trUtf8("Download Plugin Files"),
                 self.trUtf8("""The requested plugins were downloaded."""))
         
@@ -280,7 +282,8 @@
             self.closeAndInstall.emit()
         else:
             if ui is None or not ui.notificationsEnabled():
-                E5MessageBox.information(self,
+                E5MessageBox.information(
+                    self,
                     self.trUtf8("Download Plugin Files"),
                     self.trUtf8("""The requested plugins were downloaded."""))
             self.downloadProgress.setValue(0)
@@ -322,21 +325,24 @@
                 url = Preferences.getUI("PluginRepositoryUrl5")
                 if url != self.repositoryUrlEdit.text():
                     self.repositoryUrlEdit.setText(url)
-                    E5MessageBox.warning(self,
+                    E5MessageBox.warning(
+                        self,
                         self.trUtf8("Plugins Repository URL Changed"),
                         self.trUtf8(
                             """The URL of the Plugins Repository has"""
                             """ changed. Select the "Update" button to get"""
                             """ the new repository file."""))
             else:
-                E5MessageBox.critical(self,
+                E5MessageBox.critical(
+                    self,
                     self.trUtf8("Read plugins repository file"),
                     self.trUtf8("<p>The plugins repository file <b>{0}</b> "
                                 "could not be read. Select Update</p>")\
                         .format(self.pluginRepositoryFile))
         else:
             self.__repositoryMissing = True
-            QTreeWidgetItem(self.repositoryList,
+            QTreeWidgetItem(
+                self.repositoryList,
                 ["", self.trUtf8(
                     "No plugin repository file available.\nSelect Update.")
                 ])
@@ -387,7 +393,8 @@
         if reply.error() != QNetworkReply.NoError:
             ok = False
             if not self.__downloadCancelled:
-                E5MessageBox.warning(self,
+                E5MessageBox.warning(
+                    self,
                     self.trUtf8("Error downloading file"),
                     self.trUtf8(
                         """<p>Could not download the requested file"""
@@ -624,7 +631,8 @@
         
         if not os.path.isfile(applPath) or \
                 not proc.startDetached(sys.executable, args):
-            E5MessageBox.critical(self,
+            E5MessageBox.critical(
+                self,
                 self.trUtf8('Process Generation Error'),
                 self.trUtf8(
                     '<p>Could not start the process.<br>'

eric ide

mercurial