Wed, 22 Dec 2010 10:24:44 +0100
Fixed a bug causing project API files not to be cleared properly.
AssistantEric/APIsManager.py | file | annotate | diff | comparison | revisions | |
PluginAssistantEric.zip | file | annotate | diff | comparison | revisions |
diff -r 7eb775bb326b -r 3338ae0c05a9 AssistantEric/APIsManager.py --- a/AssistantEric/APIsManager.py Thu Aug 12 19:06:24 2010 +0200 +++ b/AssistantEric/APIsManager.py Wed Dec 22 10:24:44 2010 +0100 @@ -273,6 +273,7 @@ @param apiFile filename of the raw API file (string) """ + print("__deleteApiFile", apiFile) db = QSqlDatabase.database(self.__language) db.transaction() try: @@ -302,12 +303,14 @@ """ Public method to perform the threads work. """ + print(sorted(self.__apiFiles)) QCoreApplication.postEvent(self.__proxy, QEvent(QEvent.Type(WorkerStarted))) db = QSqlDatabase.database(self.__language) if db.isValid() and db.isOpen(): # step 1: remove API files not wanted any longer loadedApiFiles = self.__proxy.getApiFiles() + print(sorted(loadedApiFiles)) for apiFile in loadedApiFiles: if not self.__aborted and apiFile not in self.__apiFiles: self.__deleteApiFile(apiFile) @@ -378,7 +381,7 @@ drop_file_idx = """DROP INDEX IF EXISTS file_idx""" api_files_stmt = """ - SELECT file FROM file WHERE file LIKE '%.api' + SELECT file FROM file """ ac_stmt = """ @@ -812,6 +815,7 @@ """ Private slot to perform actions after a project has been opened. """ + print("__projectOpened") if self.__project.getProjectLanguage() in ["Python", "Python3"]: self.__discardFirst = "self" else: