pychecker fixes
svn: r1750
This commit is contained in:
@@ -20,20 +20,37 @@
|
||||
|
||||
"Database Processing/Check and repair database"
|
||||
|
||||
import RelLib
|
||||
import Utils
|
||||
from intl import gettext as _
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# python modules
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
import os
|
||||
import cStringIO
|
||||
import gtk
|
||||
import gtk.glade
|
||||
from QuestionDialog import OkDialog, MissingMediaDialog
|
||||
import shutil
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# gtk modules
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
import gtk
|
||||
import gtk.glade
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# gtk modules
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
import RelLib
|
||||
import Utils
|
||||
|
||||
from intl import gettext as _
|
||||
from QuestionDialog import OkDialog, MissingMediaDialog
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# runTool
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
def runTool(database,active_person,callback):
|
||||
|
@@ -44,6 +44,8 @@ import Utils
|
||||
import Report
|
||||
import TextDoc
|
||||
import GenericFilter
|
||||
import Errors
|
||||
|
||||
from intl import gettext as _
|
||||
from latin_utf8 import utf8_to_latin
|
||||
|
||||
@@ -271,6 +273,7 @@ class GraphVizDialog(Report.ReportDialog):
|
||||
try:
|
||||
ind_list = self.filter.apply(self.db, self.db.getPersonMap().values())
|
||||
except Errors.FilterError, msg:
|
||||
from QuestionDialog import ErrorDialog
|
||||
(m1,m2) = msg.messages()
|
||||
ErrorDialog(m1,m2)
|
||||
|
||||
|
@@ -117,6 +117,7 @@ pythondir = @pythondir@
|
||||
pkgpython_PYTHON = \
|
||||
AncestorChart.py\
|
||||
AncestorReport.py\
|
||||
Ancestors.py\
|
||||
ChangeTypes.py\
|
||||
Check.py\
|
||||
count_anc.py\
|
||||
|
@@ -40,6 +40,7 @@ def runTool(db,active_person,callback):
|
||||
class ReorderIds:
|
||||
|
||||
def __init__(self,db,callback):
|
||||
|
||||
self.db = db
|
||||
|
||||
self.reorder(db.getPersonMap(),db.iprefix,db.buildPersonDisplay)
|
||||
@@ -49,7 +50,7 @@ class ReorderIds:
|
||||
self.reorder(db.getPlaceMap(),db.pprefix,db.buildPlaceDisplay)
|
||||
Utils.modified()
|
||||
callback(1)
|
||||
|
||||
|
||||
def reorder(self,data_map,prefix,update):
|
||||
"""Try to extract the old integer out of the id, and reuse it
|
||||
if possible. Otherwise, blindly renumber those that can't."""
|
||||
|
Reference in New Issue
Block a user