diff -r b447f89da620 -r 67197c1f11eb PluginAssistantEric.py --- a/PluginAssistantEric.py Sun Oct 13 18:32:15 2013 +0200 +++ b/PluginAssistantEric.py Thu Oct 24 19:04:41 2013 +0200 @@ -25,11 +25,12 @@ author = "Detlev Offenbach <detlev@die-offenbachs.de>" autoactivate = True deactivateable = True -version = "2.6.0" +version = "2.6.1" className = "AssistantEricPlugin" packageName = "AssistantEric" shortDescription = "Alternative autocompletion and calltips provider." -longDescription = """This plugin implements an alternative autocompletion and""" \ +longDescription = \ + """This plugin implements an alternative autocompletion and""" \ """ calltips provider.""" needsRestart = True pyqtApi = 2 @@ -44,6 +45,7 @@ """ Module function to create the autocompletion configuration page. + @param configDlg reference to the configuration dialog @return reference to the configuration page """ global assistantEricPluginObject @@ -57,6 +59,7 @@ """ Module function to create the calltips configuration page. + @param configDlg reference to the configuration dialog @return reference to the configuration page """ global assistantEricPluginObject @@ -73,16 +76,16 @@ @return dictionary containing the relevant data """ return { - "ericAutoCompletionPage": \ - [QApplication.translate("AssistantEricPlugin", "Eric"), - os.path.join("AssistantEric", "ConfigurationPages", - "eric.png"), - createAutoCompletionPage, "editorAutocompletionPage", None], - "ericCallTipsPage": \ - [QApplication.translate("AssistantEricPlugin", "Eric"), - os.path.join("AssistantEric", "ConfigurationPages", - "eric.png"), - createCallTipsPage, "editorCalltipsPage", None], + "ericAutoCompletionPage": [ + QApplication.translate("AssistantEricPlugin", "Eric"), + os.path.join("AssistantEric", "ConfigurationPages", + "eric.png"), + createAutoCompletionPage, "editorAutocompletionPage", None], + "ericCallTipsPage": [ + QApplication.translate("AssistantEricPlugin", "Eric"), + os.path.join("AssistantEric", "ConfigurationPages", + "eric.png"), + createCallTipsPage, "editorCalltipsPage", None], } @@ -203,8 +206,8 @@ if self.__ui is not None: loc = self.__ui.getLocale() if loc and loc != "C": - locale_dir = \ - os.path.join(os.path.dirname(__file__), "AssistantEric", "i18n") + locale_dir = os.path.join( + os.path.dirname(__file__), "AssistantEric", "i18n") translation = "assistant_{0}".format(loc) translator = QTranslator(None) loaded = translator.load(translation, locale_dir) @@ -212,8 +215,8 @@ self.__translator = translator e5App().installTranslator(self.__translator) else: - print("Warning: translation file '{0}' could not be loaded."\ - .format(translation)) + print("Warning: translation file '{0}' could not be" + " loaded.".format(translation)) print("Using default.") def getPreferences(self, key): @@ -221,7 +224,6 @@ Public method to retrieve the various refactoring settings. @param key the key of the value to get - @param prefClass preferences class used as the storage area @return the requested refactoring setting """ if key in ["AutoCompletionEnabled", "AutoCompletionFollowHierarchy", @@ -239,9 +241,9 @@ @param key the key of the setting to be set (string) @param value the value to be set - @param prefClass preferences class used as the storage area """ - Preferences.Prefs.settings.setValue(self.PreferencesKey + "/" + key, value) + Preferences.Prefs.settings.setValue( + self.PreferencesKey + "/" + key, value) if key in ["AutoCompletionEnabled", "CalltipsEnabled"]: self.__object.setEnabled(key, value)