Adjusted some more code for eric7 22.12 and newer. eric7 release-10.2.2

Thu, 17 Nov 2022 17:59:58 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Thu, 17 Nov 2022 17:59:58 +0100
branch
eric7
changeset 198
b9fbbb1c3055
parent 197
2aad6576c78e
child 199
7fe0b2f0b5ba

Adjusted some more 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
--- a/AssistantEric/APIsManager.py	Thu Nov 17 16:07:41 2022 +0100
+++ b/AssistantEric/APIsManager.py	Thu Nov 17 17:59:58 2022 +0100
@@ -1273,7 +1273,12 @@
         @param filename name of the file that was saved
         @type str
         """
-        if self.__project.isProjectSource(filename):
+        try:
+            isProjectSource = self.__project.isProjectCategory(filename, "SOURCES")
+        except AttributeError:
+            # backward compatibility for eric < 22.12
+            isProjectSource = self.__project.isProjectSource(filename)
+        if isProjectSource:
             self.__workerQueue.append(filename)
             self.__processQueue()
 
--- a/ChangeLog	Thu Nov 17 16:07:41 2022 +0100
+++ b/ChangeLog	Thu Nov 17 17:59:58 2022 +0100
@@ -1,5 +1,8 @@
 ChangeLog
 ---------
+Version 10.2.2:
+- adjusted some more code for eric7 22.12 and newer
+
 Version 10.2.1:
 - bug fixes
 
--- a/PluginAssistantEric.py	Thu Nov 17 16:07:41 2022 +0100
+++ b/PluginAssistantEric.py	Thu Nov 17 17:59:58 2022 +0100
@@ -22,7 +22,7 @@
 author = "Detlev Offenbach <detlev@die-offenbachs.de>"
 autoactivate = True
 deactivateable = True
-version = "10.2.1"
+version = "10.2.2"
 className = "AssistantEricPlugin"
 packageName = "AssistantEric"
 shortDescription = "Alternative autocompletion and calltips provider."
Binary file PluginAssistantEric.zip has changed

eric ide

mercurial