* src/GrampsDb/_ReadGedcom.py: optimize UI updates, add test code

svn: r5771
This commit is contained in:
Don Allingham 2006-01-17 03:52:25 +00:00
parent ac4e672470
commit 816621de69

View File

@ -2151,5 +2151,17 @@ def create_id():
if __name__ == "__main__": if __name__ == "__main__":
import sys import sys
import profile
import const
from GrampsDb import gramps_db_factory, gramps_db_reader_factory
a = NoteParser(sys.argv[1],False)
codeset = None
db_class = gramps_db_factory(const.app_gramps)
database = db_class()
database.load("test.grdb",lambda x: None, mode="w")
statusTop = gtk.glade.XML('GrampsDb/gedcomimport.glade',"status","gramps")
np = NoteParser(sys.argv[1],False)
g = GedcomParser(database,sys.argv[1],statusTop, codeset, np.get_map(),np.get_lines())
profile.run('g.parse_gedcom_file(False)')