Fixed a few porting bugs.

Wed, 06 Jan 2010 18:12:19 +0000

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Wed, 06 Jan 2010 18:12:19 +0000
changeset 20
74944df40dfb
parent 19
3e024a7e465c
child 21
b88a0e6268bd

Fixed a few porting bugs.

Plugins/VcsPlugins/vcsSubversion/SvnStatusMonitorThread.py file | annotate | diff | comparison | revisions
Preferences/ConfigurationPages/EditorAPIsPage.py file | annotate | diff | comparison | revisions
UI/UserInterface.py file | annotate | diff | comparison | revisions
--- a/Plugins/VcsPlugins/vcsSubversion/SvnStatusMonitorThread.py	Wed Jan 06 18:11:25 2010 +0000
+++ b/Plugins/VcsPlugins/vcsSubversion/SvnStatusMonitorThread.py	Wed Jan 06 18:12:19 2010 +0000
@@ -108,7 +108,7 @@
             else:
                 process.kill()
                 process.waitForFinished()
-                return False, 
+                return False, \
                        str(process.readAllStandardError(), 
                             Preferences.getSystem("IOEncoding"), 
                             'replace')
--- a/Preferences/ConfigurationPages/EditorAPIsPage.py	Wed Jan 06 18:11:25 2010 +0000
+++ b/Preferences/ConfigurationPages/EditorAPIsPage.py	Wed Jan 06 18:12:19 2010 +0000
@@ -206,7 +206,7 @@
             if self.__currentAPI is not None:
                 self.__currentAPI.prepareAPIs(\
                     ondemand = True, 
-                    rawList = [self.__editorGetApisFromApiList()])
+                    rawList = self.__editorGetApisFromApiList())
         
     def __apiPreparationFinished(self):
         """
--- a/UI/UserInterface.py	Wed Jan 06 18:11:25 2010 +0000
+++ b/UI/UserInterface.py	Wed Jan 06 18:12:19 2010 +0000
@@ -4300,6 +4300,8 @@
                     '/usr/share/doc/packages/python/html')
         if not pythonDocDir.startswith("http://") and \
            not pythonDocDir.startswith("https://"):
+            if pythonDocDir.startswith("file://"):
+                pythonDocDir = pythonDocDir[7:]
             if not os.path.splitext(pythonDocDir)[1]:
                 home = Utilities.normjoinpath(pythonDocDir, 'index.html')
                 
@@ -4317,6 +4319,9 @@
                                 """ "<b>{0}</b>" could not be found.</p>""")\
                         .format(home))
                 return
+            
+            if not home.endswith(".chm"):
+                home = "file://" + home
         else:
             home = pythonDocDir
         
@@ -4349,6 +4354,8 @@
         elif qt4DocDir.startswith("http://") or qt4DocDir.startswith("https://"):
             home = qt4DocDir
         else:
+            if qt4DocDir.startswith("file://"):
+                qt4DocDir = qt4DocDir[7:]
             if not os.path.splitext(qt4DocDir)[1]:
                 home = Utilities.normjoinpath(qt4DocDir, 'index.html')
             else:
@@ -4361,6 +4368,8 @@
                                 """ "<b>{0}</b>" could not be found.</p>""")\
                         .format(home))
                 return
+            
+            home = "file://" + home
         
         hvType = Preferences.getHelp("HelpViewerType")
         if hvType == 1:
@@ -4391,6 +4400,8 @@
            not pyqt4DocDir.startswith("https://"):
             home = ""
             if pyqt4DocDir:
+                if pyqt4DocDir.startswith("file://"):
+                    pyqt4DocDir = pyqt4DocDir[7:]
                 if not os.path.splitext(pyqt4DocDir)[1]:
                     possibleHomes = [\
                         Utilities.normjoinpath(pyqt4DocDir, 'index.html'),
@@ -4403,6 +4414,9 @@
                             break
                 else:
                     home = pyqt4DocDir
+                
+                if home:
+                    home = "file://" + home
             
             if not home or not os.path.exists(home):
                 QMessageBox.warning(None,
@@ -4441,6 +4455,8 @@
                         .format(home))
                 return
         
+##        home = "file://" + home
+        
         hvType = Preferences.getHelp("HelpViewerType")
         if hvType == 1:
             self.launchHelpViewer(home)
@@ -4468,6 +4484,8 @@
         
         if not pysideDocDir.startswith("http://") and \
            not pysideDocDir.startswith("https://"):
+            if pysideDocDir.startswith("file://"):
+                pysideDocDir = pysideDocDir[7:]
             if not os.path.splitext(pysideDocDir)[1]:
                 home = Utilities.normjoinpath(pysideDocDir, 'index.html')
             else:
@@ -4479,6 +4497,8 @@
                                 """ "<b>{0}</b>" could not be found.</p>""")\
                         .format(home))
                 return
+            
+            home = "file://" + home
         else:
             home = pysideDocDir
         

eric ide

mercurial