7469: ReorderIDs: global name 'gen' is not defined

This commit is contained in:
Vassilii Khachaturov 2014-02-16 11:41:55 +02:00
parent e281f51ba6
commit 15623c6c27

View File

@ -44,7 +44,8 @@ _ = glocale.translation.gettext
# #
#------------------------------------------------------------------------ #------------------------------------------------------------------------
from gramps.gui.utils import ProgressMeter 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.gen.db import DbTxn
from gramps.gui.plug import tool from gramps.gui.plug import tool
@ -129,7 +130,7 @@ class ReorderIds(tool.BatchTool):
if uistate: if uistate:
self.progress.set_pass(_('Reordering Citation IDs'), self.progress.set_pass(_('Reordering Citation IDs'),
db.get_number_of_citations()) db.get_number_of_citations())
self.reorder(gen.lib.Citation, self.reorder(Citation,
db.get_citation_from_gramps_id, db.get_citation_from_gramps_id,
db.get_citation_from_handle, db.get_citation_from_handle,
db.find_next_citation_gramps_id, db.find_next_citation_gramps_id,