E5XML/PluginRepositoryReader.py

changeset 945
8cd4d08fa9f6
parent 791
9ec2ac20e54e
child 1509
c0b5e693b0eb
diff -r 1b59c4ba121e -r 8cd4d08fa9f6 E5XML/PluginRepositoryReader.py
--- a/E5XML/PluginRepositoryReader.py	Fri Mar 11 08:55:14 2011 +0100
+++ b/E5XML/PluginRepositoryReader.py	Fri Mar 11 16:51:57 2011 +0100
@@ -12,6 +12,7 @@
 
 import Preferences
 
+
 class PluginRepositoryReader(XMLStreamReaderBase):
     """
     Class to read the plug-in repository contents file.
@@ -39,7 +40,7 @@
             self.readNext()
             if self.isStartElement():
                 if self.name() == "Plugins":
-                    self.version = self.attribute("version", 
+                    self.version = self.attribute("version",
                         pluginRepositoryFileFormatVersion)
                     if self.version not in self.supportedVersions:
                         self.raiseUnsupportedFormatVersion(self.version)
@@ -57,21 +58,21 @@
         """
         Private method to read the plug-in info.
         """
-        pluginInfo = {"name"         : "",
-                      "short"        : "",
-                      "description"  : "",
-                      "url"          : "",
-                      "author"       : "",
-                      "version"      : "", 
-                      "filename"     : "",
+        pluginInfo = {"name": "",
+                      "short": "",
+                      "description": "",
+                      "url": "",
+                      "author": "",
+                      "version": "",
+                      "filename": "",
         }
         pluginInfo["status"] = self.attribute("status", "unknown")
         
         while not self.atEnd():
             self.readNext()
             if self.isEndElement() and self.name() == "Plugin":
-                self.dlg.addEntry(pluginInfo["name"], pluginInfo["short"], 
-                                  pluginInfo["description"], pluginInfo["url"], 
+                self.dlg.addEntry(pluginInfo["name"], pluginInfo["short"],
+                                  pluginInfo["description"], pluginInfo["url"],
                                   pluginInfo["author"], pluginInfo["version"],
                                   pluginInfo["filename"], pluginInfo["status"])
                 break

eric ide

mercurial