2008-02-18 Raphael Ackermann <raphael.ackermann@gmail.com>

* src/* 143 files
    * test/try_tree_model.py
    * windows/nsis/gcheck.py
    imports cleanup

svn: r10055
This commit is contained in:
Raphael Ackermann
2008-02-18 20:07:09 +00:00
parent d0cb3a8451
commit 90f883e46d
146 changed files with 385 additions and 443 deletions

View File

@ -47,7 +47,7 @@ log = logging.getLogger(".CheckRepair")
#
#-------------------------------------------------------------------------
import gtk
import gtk.glade
from gtk import glade
#-------------------------------------------------------------------------
#
@ -56,7 +56,7 @@ import gtk.glade
#-------------------------------------------------------------------------
import gen.lib
import Utils
import const
#import const
import ManagedWindow
from PluginUtils import Tool, register_tool
@ -109,8 +109,9 @@ def _table_low_level(db,table):
print " No dupes found for this table"
return True
import gen.db
table_cursor = gen.db.GrampsDBDirDupCursor(table)
# import gen.db
from gen.db import GrampsDBDirDupCursor
table_cursor = GrampsDBDirDupCursor(table)
for handle in dup_handles:
print " Duplicates found for handle: %s" % handle
try:
@ -1472,7 +1473,7 @@ class Report(ManagedWindow.ManagedWindow):
base = os.path.dirname(__file__)
glade_file = base + os.sep + "summary.glade"
topDialog = gtk.glade.XML(glade_file,"summary","gramps")
topDialog = glade.XML(glade_file,"summary","gramps")
topDialog.get_widget("close").connect('clicked',self.close)
window = topDialog.get_widget("summary")