Adjusted code for eric7 22.12 and newer. eric7 release-10.2.0

Thu, 17 Nov 2022 13:55:09 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Thu, 17 Nov 2022 13:55:09 +0100
branch
eric7
changeset 194
2e6024151141
parent 193
e1b0e65903d9
child 195
9df77a2b102d

Adjusted code for eric7 22.12 and newer.

AssistantEric/APIsManager.py file | annotate | diff | comparison | revisions
ChangeLog file | annotate | diff | comparison | revisions
PluginAssistantEric.py file | annotate | diff | comparison | revisions
PluginAssistantEric.zip file | annotate | diff | comparison | revisions
PluginEricAssistant.epj file | annotate | diff | comparison | revisions
--- a/AssistantEric/APIsManager.py	Thu Nov 17 13:54:33 2022 +0100
+++ b/AssistantEric/APIsManager.py	Thu Nov 17 13:55:09 2022 +0100
@@ -696,8 +696,12 @@
         self.__project.projectOpened.connect(self.__projectOpened)
         self.__project.newProject.connect(self.__projectOpened)
         self.__project.projectClosed.connect(self.__projectClosed)
-        self.__project.projectFormCompiled.connect(self.__projectFormCompiled)
         self.__project.projectChanged.connect(self.__projectChanged)
+        try:
+            self.__project.projectFileCompiled.connect(self.__projectFileCompiled)
+        except AttributeError:
+            # backward compatibility for eric < 22.12
+            self.__project.projectFormCompiled.connect(self.__projectFormCompiled)
 
         if self.__project.isOpen():
             self.__projectOpened()
@@ -1244,11 +1248,11 @@
         """
         self.close()
 
-    def __projectFormCompiled(self, filename):
+    def __projectFileCompiled(self, filename):
         """
         Private slot to handle the projectFormCompiled signal.
 
-        @param filename name of the form file that was compiled
+        @param filename name of the source file that was generated
         @type str
         """
         self.__workerQueue.append(filename)
--- a/ChangeLog	Thu Nov 17 13:54:33 2022 +0100
+++ b/ChangeLog	Thu Nov 17 13:55:09 2022 +0100
@@ -1,5 +1,8 @@
 ChangeLog
 ---------
+Version 10.2.0:
+- adjusted code for eric7 22.12 and newer
+
 Version 10.1.0:
 - bug fixes
 - adapted the import statements to the new structure
--- a/PluginAssistantEric.py	Thu Nov 17 13:54:33 2022 +0100
+++ b/PluginAssistantEric.py	Thu Nov 17 13:55:09 2022 +0100
@@ -22,7 +22,7 @@
 author = "Detlev Offenbach <detlev@die-offenbachs.de>"
 autoactivate = True
 deactivateable = True
-version = "10.1.0"
+version = "10.2.0"
 className = "AssistantEricPlugin"
 packageName = "AssistantEric"
 shortDescription = "Alternative autocompletion and calltips provider."
Binary file PluginAssistantEric.zip has changed
--- a/PluginEricAssistant.epj	Thu Nov 17 13:54:33 2022 +0100
+++ b/PluginEricAssistant.epj	Thu Nov 17 13:55:09 2022 +0100
@@ -131,6 +131,7 @@
         ],
         "outputDirectory": "AssistantEric/Documentation/source",
         "qtHelpEnabled": false,
+        "startDirectory": "",
         "useRecursion": true
       }
     },

eric ide

mercurial