pylint
svn: r11948
This commit is contained in:
parent
f8875759ab
commit
fd915ad3af
@ -4,7 +4,7 @@
|
|||||||
# Gramps - a GTK+/GNOME based genealogy program
|
# Gramps - a GTK+/GNOME based genealogy program
|
||||||
#
|
#
|
||||||
# Copyright (C) 2006-2007 Alex Roitman
|
# Copyright (C) 2006-2007 Alex Roitman
|
||||||
# Copyright (C) 2007-2008 Jerome Rapinat
|
# Copyright (C) 2007-2009 Jerome Rapinat
|
||||||
#
|
#
|
||||||
# This program is free software; you can redistribute it and/or modify
|
# This program is free software; you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
||||||
@ -35,10 +35,11 @@ from Simple import SimpleDoc
|
|||||||
from gettext import gettext as _
|
from gettext import gettext as _
|
||||||
from gen.plug import PluginManager
|
from gen.plug import PluginManager
|
||||||
from ReportBase import CATEGORY_QR_REPOSITORY
|
from ReportBase import CATEGORY_QR_REPOSITORY
|
||||||
import gen.lib
|
|
||||||
|
|
||||||
|
|
||||||
def run(database, document, repo):
|
def run(database, document, repo):
|
||||||
|
"""
|
||||||
|
Display back-references (sources) for this repository.
|
||||||
|
"""
|
||||||
|
|
||||||
sdoc = SimpleDoc(document)
|
sdoc = SimpleDoc(document)
|
||||||
|
|
||||||
@ -78,14 +79,16 @@ def run(database, document, repo):
|
|||||||
#
|
#
|
||||||
# ------------------------------------------------------------------------
|
# ------------------------------------------------------------------------
|
||||||
|
|
||||||
pmgr = PluginManager.get_instance()
|
PMGR = PluginManager.get_instance()
|
||||||
|
|
||||||
pmgr.register_quick_report(
|
PMGR.register_quick_report(
|
||||||
name='RepoRef',
|
name='RepoRef',
|
||||||
category=CATEGORY_QR_REPOSITORY,
|
category=CATEGORY_QR_REPOSITORY,
|
||||||
run_func=run,
|
run_func=run,
|
||||||
translated_name=_('RepoRef'),
|
translated_name=_('RepoRef'),
|
||||||
status=_('Beta'),
|
status=_('Stable'),
|
||||||
description=_('Display RepoRef for sources related to active repository'
|
description=_('Display RepoRef for sources related to active repository'
|
||||||
),
|
),
|
||||||
|
author_name="Jerome Rapinat",
|
||||||
|
author_email="romjerome@yahoo.fr"
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user