From 15623c6c2742055dd3064ded96aa02f9a31a0485 Mon Sep 17 00:00:00 2001 From: Vassilii Khachaturov Date: Sun, 16 Feb 2014 11:41:55 +0200 Subject: [PATCH] 7469: ReorderIDs: global name 'gen' is not defined --- gramps/plugins/tool/reorderids.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gramps/plugins/tool/reorderids.py b/gramps/plugins/tool/reorderids.py index bc8bf5e45..4bd1595e7 100644 --- a/gramps/plugins/tool/reorderids.py +++ b/gramps/plugins/tool/reorderids.py @@ -44,7 +44,8 @@ _ = glocale.translation.gettext # #------------------------------------------------------------------------ from gramps.gui.utils import ProgressMeter -from gramps.gen.lib import Event, Family, MediaObject, Note, Person, Place, Repository, Source +from gramps.gen.lib import (Event, Family, MediaObject, Note, + Person, Place, Repository, Source, Citation) from gramps.gen.db import DbTxn from gramps.gui.plug import tool @@ -129,7 +130,7 @@ class ReorderIds(tool.BatchTool): if uistate: self.progress.set_pass(_('Reordering Citation IDs'), db.get_number_of_citations()) - self.reorder(gen.lib.Citation, + self.reorder(Citation, db.get_citation_from_gramps_id, db.get_citation_from_handle, db.find_next_citation_gramps_id,