Plugins/PluginVcsSubversion.py

branch
Py2 comp.
changeset 3057
10516539f238
parent 2791
a9577f248f04
parent 3004
c4bf32c791d0
child 3058
0a02c433f52d
diff -r 9986ec0e559a -r 10516539f238 Plugins/PluginVcsSubversion.py
--- a/Plugins/PluginVcsSubversion.py	Tue Oct 15 22:03:54 2013 +0200
+++ b/Plugins/PluginVcsSubversion.py	Fri Oct 18 23:00:41 2013 +0200
@@ -34,7 +34,8 @@
 className = "VcsSubversionPlugin"
 packageName = "__core__"
 shortDescription = "Implements the Subversion version control interface."
-longDescription = """This plugin provides the Subversion version control interface."""
+longDescription = \
+    """This plugin provides the Subversion version control interface."""
 pyqtApi = 2
 # End-Of-Header
 
@@ -71,8 +72,8 @@
     """
     Public function to get the indicators for this version control system.
     
-    @return dictionary with indicator as key and a tuple with the vcs name (string)
-        and vcs display string (string)
+    @return dictionary with indicator as key and a tuple with the vcs name
+        (string) and vcs display string (string)
     """
     global pluginTypename
     data = {}
@@ -95,7 +96,8 @@
     if Utilities.isWindowsPlatform():
         exe += '.exe'
     if Utilities.isinpath(exe):
-        return QApplication.translate('VcsSubversionPlugin', 'Subversion (svn)')
+        return QApplication.translate(
+            'VcsSubversionPlugin', 'Subversion (svn)')
     else:
         return ""
 
@@ -106,10 +108,12 @@
     """
     Module function to create the configuration page.
     
+    @param configDlg reference to the configuration dialog (QDialog)
     @return reference to the configuration page
     """
     global subversionCfgPluginObject
-    from VcsPlugins.vcsSubversion.ConfigurationPage.SubversionPage import SubversionPage
+    from VcsPlugins.vcsSubversion.ConfigurationPage.SubversionPage import \
+        SubversionPage
     if subversionCfgPluginObject is None:
         subversionCfgPluginObject = VcsSubversionPlugin(None)
     page = SubversionPage(subversionCfgPluginObject)
@@ -120,7 +124,8 @@
     """
     Module function returning data as required by the configuration dialog.
     
-    @return dictionary with key "zzz_subversionPage" containing the relevant data
+    @return dictionary with key "zzz_subversionPage" containing the relevant
+    data
     """
     return {
         "zzz_subversionPage": \
@@ -135,7 +140,8 @@
     """
     Module function to prepare for an uninstallation.
     """
-    if not e5App().getObject("PluginManager").isPluginLoaded("PluginVcsSubversion"):
+    if not e5App().getObject("PluginManager").isPluginLoaded(
+            "PluginVcsSubversion"):
         Preferences.Prefs.settings.remove("Subversion")
     
 
@@ -161,8 +167,8 @@
         from VcsPlugins.vcsSubversion.ProjectHelper import SvnProjectHelper
         self.__projectHelperObject = SvnProjectHelper(None, None)
         try:
-            e5App().registerPluginObject(pluginTypename, self.__projectHelperObject,
-                                         pluginType)
+            e5App().registerPluginObject(
+                pluginTypename, self.__projectHelperObject, pluginType)
         except KeyError:
             pass    # ignore duplicate registration
         readShortcuts(pluginName=pluginTypename)

eric ide

mercurial