Tue, 28 Mar 2017 19:27:02 +0200
Fixed some code style issues.
--- a/ChangeLog Wed Mar 08 19:32:30 2017 +0100 +++ b/ChangeLog Tue Mar 28 19:27:02 2017 +0200 @@ -1,5 +1,8 @@ ChangeLog --------- +Version 2.0.3: +- bug fixes + Version 2.0.2: - bug fixes
--- a/PluginDjangoTagsMenu.e4p Wed Mar 08 19:32:30 2017 +0100 +++ b/PluginDjangoTagsMenu.e4p Tue Mar 28 19:27:02 2017 +0200 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE Project SYSTEM "Project-5.1.dtd"> <!-- eric project file for project PluginDjangoTagsMenu --> -<!-- Copyright (C) 2014 Detlev Offenbach, detlev@die-offenbachs.de --> +<!-- Copyright (C) 2017 Detlev Offenbach, detlev@die-offenbachs.de --> <Project version="5.1"> <Language>en_US</Language> <Hash>fac07f0675a7c77618ebfac9d2cbbfb763f751f3</Hash> @@ -14,46 +14,46 @@ <TranslationPattern>ProjectDjangoTagsMenu/i18n/djangotagsmenu_%language%.ts</TranslationPattern> <Eol index="1"/> <Sources> - <Source>__init__.py</Source> <Source>PluginProjectDjangoTagsMenu.py</Source> - <Source>ProjectDjangoTagsMenu/__init__.py</Source> + <Source>ProjectDjangoTagsMenu/DjangoTagInputDialog.py</Source> <Source>ProjectDjangoTagsMenu/DjangoTagsMenuHandler.py</Source> <Source>ProjectDjangoTagsMenu/FindTemplateTagDialog.py</Source> - <Source>ProjectDjangoTagsMenu/DjangoTagInputDialog.py</Source> - <Source>ProjectDjangoTagsMenu/LoremTagInputDialog.py</Source> + <Source>ProjectDjangoTagsMenu/IeCommentDialog.py</Source> <Source>ProjectDjangoTagsMenu/IfTagInputDialog.py</Source> + <Source>ProjectDjangoTagsMenu/LoremTagInputDialog.py</Source> <Source>ProjectDjangoTagsMenu/MultiLineInputDialog.py</Source> - <Source>ProjectDjangoTagsMenu/IeCommentDialog.py</Source> <Source>ProjectDjangoTagsMenu/TimezoneSelectionDialog.py</Source> + <Source>ProjectDjangoTagsMenu/__init__.py</Source> + <Source>__init__.py</Source> </Sources> <Forms> <Form>ProjectDjangoTagsMenu/FindTemplateTagDialog.ui</Form> - <Form>ProjectDjangoTagsMenu/LoremTagInputDialog.ui</Form> + <Form>ProjectDjangoTagsMenu/IeCommentDialog.ui</Form> <Form>ProjectDjangoTagsMenu/IfTagInputDialog.ui</Form> + <Form>ProjectDjangoTagsMenu/LoremTagInputDialog.ui</Form> <Form>ProjectDjangoTagsMenu/MultiLineInputDialog.ui</Form> - <Form>ProjectDjangoTagsMenu/IeCommentDialog.ui</Form> <Form>ProjectDjangoTagsMenu/TimezoneSelectionDialog.ui</Form> </Forms> <Translations> + <Translation>ProjectDjangoTagsMenu/i18n/djangotagsmenu_de.qm</Translation> <Translation>ProjectDjangoTagsMenu/i18n/djangotagsmenu_de.ts</Translation> + <Translation>ProjectDjangoTagsMenu/i18n/djangotagsmenu_en.qm</Translation> <Translation>ProjectDjangoTagsMenu/i18n/djangotagsmenu_en.ts</Translation> + <Translation>ProjectDjangoTagsMenu/i18n/djangotagsmenu_es.qm</Translation> <Translation>ProjectDjangoTagsMenu/i18n/djangotagsmenu_es.ts</Translation> - <Translation>ProjectDjangoTagsMenu/i18n/djangotagsmenu_de.qm</Translation> - <Translation>ProjectDjangoTagsMenu/i18n/djangotagsmenu_en.qm</Translation> - <Translation>ProjectDjangoTagsMenu/i18n/djangotagsmenu_es.qm</Translation> + <Translation>ProjectDjangoTagsMenu/i18n/djangotagsmenu_ru.qm</Translation> <Translation>ProjectDjangoTagsMenu/i18n/djangotagsmenu_ru.ts</Translation> - <Translation>ProjectDjangoTagsMenu/i18n/djangotagsmenu_ru.qm</Translation> </Translations> <Resources/> <Interfaces/> <Others> <Other>.hgignore</Other> + <Other>ChangeLog</Other> + <Other>PKGLIST</Other> <Other>PluginDjangoTagsMenu.e4p</Other> - <Other>ChangeLog</Other> + <Other>PluginProjectDjangoTagsMenu.zip</Other> <Other>ProjectDjangoTagsMenu/Documentation/LICENSE.GPL3</Other> <Other>ProjectDjangoTagsMenu/Documentation/source</Other> - <Other>PKGLIST</Other> - <Other>PluginProjectDjangoTagsMenu.zip</Other> </Others> <MainScript>PluginProjectDjangoTagsMenu.py</MainScript> <Vcs> @@ -158,9 +158,6 @@ </value> </dict> </VcsOptions> - <VcsOtherData> - <dict/> - </VcsOtherData> </Vcs> <FiletypeAssociations> <FiletypeAssociation pattern="*.idl" type="INTERFACES"/> @@ -223,14 +220,6 @@ <bool>False</bool> </value> <key> - <string>sourceExtensions</string> - </key> - <value> - <list> - <string></string> - </list> - </value> - <key> <string>useRecursion</string> </key> <value> @@ -250,6 +239,49 @@ <value> <dict> <key> + <string>BuiltinsChecker</string> + </key> + <value> + <dict> + <key> + <string>bytes</string> + </key> + <value> + <list> + <string>unicode</string> + </list> + </value> + <key> + <string>chr</string> + </key> + <value> + <list> + <string>unichr</string> + </list> + </value> + <key> + <string>str</string> + </key> + <value> + <list> + <string>unicode</string> + </list> + </value> + </dict> + </value> + <key> + <string>CopyrightAuthor</string> + </key> + <value> + <string></string> + </value> + <key> + <string>CopyrightMinFileSize</string> + </key> + <value> + <int>0</int> + </value> + <key> <string>DocstringType</string> </key> <value> @@ -259,13 +291,13 @@ <string>ExcludeFiles</string> </key> <value> - <string>*/Ui_*.py</string> + <string>*/Ui_*.py, */*_rc.py</string> </value> <key> <string>ExcludeMessages</string> </key> <value> - <string>W293, N802, N803, N807, N808, N821, E265</string> + <string>C101, E265, E266, E305, E402, M811, N802, N803, N807, N808, N821, W293</string> </value> <key> <string>FixCodes</string> @@ -280,6 +312,12 @@ <bool>False</bool> </value> <key> + <string>FutureChecker</string> + </key> + <value> + <string>unicode_literals</string> + </value> + <key> <string>HangClosing</string> </key> <value> @@ -292,6 +330,24 @@ <string></string> </value> <key> + <string>LineComplexity</string> + </key> + <value> + <int>20</int> + </value> + <key> + <string>LineComplexityScore</string> + </key> + <value> + <int>10</int> + </value> + <key> + <string>MaxCodeComplexity</string> + </key> + <value> + <int>10</int> + </value> + <key> <string>MaxLineLength</string> </key> <value> @@ -315,6 +371,12 @@ <value> <bool>False</bool> </value> + <key> + <string>ValidEncodings</string> + </key> + <value> + <string>latin-1, utf-8</string> + </value> </dict> </value> </dict>
--- a/PluginProjectDjangoTagsMenu.py Wed Mar 08 19:32:30 2017 +0100 +++ b/PluginProjectDjangoTagsMenu.py Tue Mar 28 19:27:02 2017 +0200 @@ -23,7 +23,7 @@ author = "Detlev Offenbach <detlev@die-offenbachs.de>" autoactivate = True deactivateable = True -version = "2.0.2" +version = "2.0.3" className = "ProjectDjangoTagsMenuPlugin" packageName = "ProjectDjangoTagsMenu" shortDescription = "Tags menu for Django projects." @@ -151,7 +151,7 @@ if loc and loc != "C": locale_dir = os.path.join( os.path.dirname(__file__), "ProjectDjangoTagsMenu", "i18n") - translation = "djangotagsmenu_%s" % loc + translation = "djangotagsmenu_{0}".format(loc) translator = QTranslator(None) loaded = translator.load(translation, locale_dir) if loaded: @@ -189,3 +189,6 @@ if moduleName == "PluginProjectDjango": self.__handler.closeAllWindows() self.__detachMenu() + +# +# eflag: noqa = M801
--- a/ProjectDjangoTagsMenu/DjangoTagInputDialog.py Wed Mar 08 19:32:30 2017 +0100 +++ b/ProjectDjangoTagsMenu/DjangoTagInputDialog.py Tue Mar 28 19:27:02 2017 +0200 @@ -67,7 +67,7 @@ return tuple(data) @staticmethod - def getText(parent, title, labels, defaults=[]): + def getText(parent, title, labels, defaults=None): """ Public static method to create the dialog and return the entered data. @@ -80,6 +80,9 @@ (tuple of string) and a flag indicating the acceptance state (boolean) """ + if defaults is None: + defaults = [] + dlg = DjangoTagInputDialog(labels, defaults, parent) dlg.setWindowTitle(title) if dlg.exec_() == QDialog.Accepted:
--- a/ProjectDjangoTagsMenu/Documentation/source/Plugin_Project_Django_Tags_Menu.ProjectDjangoTagsMenu.DjangoTagInputDialog.html Wed Mar 08 19:32:30 2017 +0100 +++ b/ProjectDjangoTagsMenu/Documentation/source/Plugin_Project_Django_Tags_Menu.ProjectDjangoTagsMenu.DjangoTagInputDialog.html Tue Mar 28 19:27:02 2017 +0200 @@ -100,7 +100,7 @@ </dd> </dl><a NAME="DjangoTagInputDialog.getText" ID="DjangoTagInputDialog.getText"></a> <h4>DjangoTagInputDialog.getText (static)</h4> -<b>getText</b>(<i>title, labels, defaults=[]</i>) +<b>getText</b>(<i>title, labels, defaults=None</i>) <p> Public static method to create the dialog and return the entered data. </p><dl>