From 14142ff5e3b95a535de3d362b0c7aafa41c96e12 Mon Sep 17 00:00:00 2001 From: romjerome Date: Wed, 21 Dec 2016 11:39:23 +0100 Subject: [PATCH] 9824: pylint errors: explicit import for modules and variables on .gpr.py was pull request #284 --- gramps/plugins/db/bsddb/bsddb.gpr.py | 3 +++ gramps/plugins/db/dbapi/dbapi.gpr.py | 3 +++ gramps/plugins/db/dbapi/inmemorydb.gpr.py | 3 +++ gramps/plugins/db/dummydb.gpr.py | 3 +++ gramps/plugins/docgen/docgen.gpr.py | 3 +++ gramps/plugins/drawreport/drawplugins.gpr.py | 3 +++ gramps/plugins/export/export.gpr.py | 3 +++ gramps/plugins/gramplet/gramplet.gpr.py | 3 +++ gramps/plugins/graph/graphplugins.gpr.py | 3 +++ gramps/plugins/importer/import.gpr.py | 3 +++ gramps/plugins/lib/libplugins.gpr.py | 3 +++ gramps/plugins/quickview/quickview.gpr.py | 3 +++ gramps/plugins/rel/relplugins.gpr.py | 3 +++ gramps/plugins/textreport/textplugins.gpr.py | 3 +++ gramps/plugins/tool/tools.gpr.py | 3 +++ gramps/plugins/tool/toolsdebug.gpr.py | 3 +++ gramps/plugins/webreport/webplugins.gpr.py | 3 +++ 17 files changed, 51 insertions(+) diff --git a/gramps/plugins/db/bsddb/bsddb.gpr.py b/gramps/plugins/db/bsddb/bsddb.gpr.py index 92605d301..3c1a6f425 100644 --- a/gramps/plugins/db/bsddb/bsddb.gpr.py +++ b/gramps/plugins/db/bsddb/bsddb.gpr.py @@ -17,6 +17,9 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # +from gramps.gen.plug._pluginreg import newplugin, STABLE, DATABASE +from gramps.gen.const import GRAMPS_LOCALE as glocale +_ = glocale.translation.gettext plg = newplugin() plg.id = 'bsddb' diff --git a/gramps/plugins/db/dbapi/dbapi.gpr.py b/gramps/plugins/db/dbapi/dbapi.gpr.py index 7bbc307ba..ef442cfe9 100644 --- a/gramps/plugins/db/dbapi/dbapi.gpr.py +++ b/gramps/plugins/db/dbapi/dbapi.gpr.py @@ -17,6 +17,9 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # +from gramps.gen.plug._pluginreg import register, STABLE, DATABASE +from gramps.gen.const import GRAMPS_LOCALE as glocale +_ = glocale.translation.gettext register(DATABASE, id = 'dbapi', diff --git a/gramps/plugins/db/dbapi/inmemorydb.gpr.py b/gramps/plugins/db/dbapi/inmemorydb.gpr.py index 70ba9f15a..3db80b507 100644 --- a/gramps/plugins/db/dbapi/inmemorydb.gpr.py +++ b/gramps/plugins/db/dbapi/inmemorydb.gpr.py @@ -17,6 +17,9 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # +from gramps.gen.plug._pluginreg import register, STABLE, DATABASE +from gramps.gen.const import GRAMPS_LOCALE as glocale +_ = glocale.translation.gettext register(DATABASE, id = 'inmemorydb', diff --git a/gramps/plugins/db/dummydb.gpr.py b/gramps/plugins/db/dummydb.gpr.py index 07cce895f..5d1cbccf7 100644 --- a/gramps/plugins/db/dummydb.gpr.py +++ b/gramps/plugins/db/dummydb.gpr.py @@ -17,6 +17,9 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # +from gramps.gen.plug._pluginreg import register, STABLE, DATABASE +from gramps.gen.const import GRAMPS_LOCALE as glocale +_ = glocale.translation.gettext register(DATABASE, id = 'dummydb', diff --git a/gramps/plugins/docgen/docgen.gpr.py b/gramps/plugins/docgen/docgen.gpr.py index 272cab506..b786c2d27 100644 --- a/gramps/plugins/docgen/docgen.gpr.py +++ b/gramps/plugins/docgen/docgen.gpr.py @@ -17,6 +17,9 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # +from gramps.gen.plug._pluginreg import newplugin, STABLE +from gramps.gen.const import GRAMPS_LOCALE as glocale +_ = glocale.translation.gettext MODULE_VERSION="5.0" diff --git a/gramps/plugins/drawreport/drawplugins.gpr.py b/gramps/plugins/drawreport/drawplugins.gpr.py index 437d4bae1..9aedbf58b 100644 --- a/gramps/plugins/drawreport/drawplugins.gpr.py +++ b/gramps/plugins/drawreport/drawplugins.gpr.py @@ -18,6 +18,9 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # +from gramps.gen.plug._pluginreg import * +from gramps.gen.const import GRAMPS_LOCALE as glocale +_ = glocale.translation.gettext MODULE_VERSION="5.0" diff --git a/gramps/plugins/export/export.gpr.py b/gramps/plugins/export/export.gpr.py index 6a2957331..ac8c70bee 100644 --- a/gramps/plugins/export/export.gpr.py +++ b/gramps/plugins/export/export.gpr.py @@ -17,6 +17,9 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # +from gramps.gen.plug._pluginreg import newplugin, STABLE, EXPORT +from gramps.gen.const import GRAMPS_LOCALE as glocale +_ = glocale.translation.gettext MODULE_VERSION="5.0" diff --git a/gramps/plugins/gramplet/gramplet.gpr.py b/gramps/plugins/gramplet/gramplet.gpr.py index 386b7c9cf..9d9638dc9 100644 --- a/gramps/plugins/gramplet/gramplet.gpr.py +++ b/gramps/plugins/gramplet/gramplet.gpr.py @@ -20,6 +20,9 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # +from gramps.gen.plug._pluginreg import register, STABLE, UNSTABLE, GRAMPLET +from gramps.gen.const import GRAMPS_LOCALE as glocale +_ = glocale.translation.gettext MODULE_VERSION="5.0" diff --git a/gramps/plugins/graph/graphplugins.gpr.py b/gramps/plugins/graph/graphplugins.gpr.py index c04b9734a..9857d3450 100644 --- a/gramps/plugins/graph/graphplugins.gpr.py +++ b/gramps/plugins/graph/graphplugins.gpr.py @@ -17,6 +17,9 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # +from gramps.gen.plug._pluginreg import * +from gramps.gen.const import GRAMPS_LOCALE as glocale +_ = glocale.translation.gettext MODULE_VERSION="5.0" diff --git a/gramps/plugins/importer/import.gpr.py b/gramps/plugins/importer/import.gpr.py index 5fd3a5077..902daa441 100644 --- a/gramps/plugins/importer/import.gpr.py +++ b/gramps/plugins/importer/import.gpr.py @@ -17,6 +17,9 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # +from gramps.gen.plug._pluginreg import newplugin, STABLE, IMPORT +from gramps.gen.const import GRAMPS_LOCALE as glocale +_ = glocale.translation.gettext MODULE_VERSION="5.0" diff --git a/gramps/plugins/lib/libplugins.gpr.py b/gramps/plugins/lib/libplugins.gpr.py index 3358128e0..2f8ef9814 100644 --- a/gramps/plugins/lib/libplugins.gpr.py +++ b/gramps/plugins/lib/libplugins.gpr.py @@ -18,6 +18,9 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # +from gramps.gen.plug._pluginreg import register, STABLE, GENERAL +from gramps.gen.const import GRAMPS_LOCALE as glocale +_ = glocale.translation.gettext MODULE_VERSION="5.0" diff --git a/gramps/plugins/quickview/quickview.gpr.py b/gramps/plugins/quickview/quickview.gpr.py index 831205954..f151359fa 100644 --- a/gramps/plugins/quickview/quickview.gpr.py +++ b/gramps/plugins/quickview/quickview.gpr.py @@ -18,6 +18,9 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # +from gramps.gen.plug._pluginreg import * +from gramps.gen.const import GRAMPS_LOCALE as glocale +_ = glocale.translation.gettext MODULE_VERSION="5.0" diff --git a/gramps/plugins/rel/relplugins.gpr.py b/gramps/plugins/rel/relplugins.gpr.py index 2d58236d2..ab3cd58c0 100644 --- a/gramps/plugins/rel/relplugins.gpr.py +++ b/gramps/plugins/rel/relplugins.gpr.py @@ -18,6 +18,9 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # +from gramps.gen.plug._pluginreg import newplugin, STABLE, RELCALC +from gramps.gen.const import GRAMPS_LOCALE as glocale +_ = glocale.translation.gettext MODULE_VERSION="5.0" diff --git a/gramps/plugins/textreport/textplugins.gpr.py b/gramps/plugins/textreport/textplugins.gpr.py index 190c8ee5d..bd9af5804 100644 --- a/gramps/plugins/textreport/textplugins.gpr.py +++ b/gramps/plugins/textreport/textplugins.gpr.py @@ -18,6 +18,9 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # +from gramps.gen.plug._pluginreg import * +from gramps.gen.const import GRAMPS_LOCALE as glocale +_ = glocale.translation.gettext MODULE_VERSION="5.0" diff --git a/gramps/plugins/tool/tools.gpr.py b/gramps/plugins/tool/tools.gpr.py index 8b3484503..46acdead8 100644 --- a/gramps/plugins/tool/tools.gpr.py +++ b/gramps/plugins/tool/tools.gpr.py @@ -17,6 +17,9 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # +from gramps.gen.plug._pluginreg import * +from gramps.gen.const import GRAMPS_LOCALE as glocale +_ = glocale.translation.gettext """ GRAMPS registration file diff --git a/gramps/plugins/tool/toolsdebug.gpr.py b/gramps/plugins/tool/toolsdebug.gpr.py index bb7844694..6b4679f0a 100644 --- a/gramps/plugins/tool/toolsdebug.gpr.py +++ b/gramps/plugins/tool/toolsdebug.gpr.py @@ -17,6 +17,9 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # +from gramps.gen.plug._pluginreg import * +from gramps.gen.const import GRAMPS_LOCALE as glocale +_ = glocale.translation.gettext """ GRAMPS registration file diff --git a/gramps/plugins/webreport/webplugins.gpr.py b/gramps/plugins/webreport/webplugins.gpr.py index 89c0d5a83..135dfb831 100644 --- a/gramps/plugins/webreport/webplugins.gpr.py +++ b/gramps/plugins/webreport/webplugins.gpr.py @@ -17,6 +17,9 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # +from gramps.gen.plug._pluginreg import * +from gramps.gen.const import GRAMPS_LOCALE as glocale +_ = glocale.translation.gettext MODULE_VERSION="5.0"