Revert "restore missing (since January) "import statistics" dialog"
This reverts commit c3fb9c0c4e
.
This commit is contained in:
@@ -127,11 +127,7 @@ class DbLoader(CLIDbLoader):
|
|||||||
if not warn_dialog.run():
|
if not warn_dialog.run():
|
||||||
return False
|
return False
|
||||||
|
|
||||||
GrampsImportFileDialog(self.dbstate, self.uistate,
|
GrampsImportFileDialog(self.dbstate, self.uistate)
|
||||||
callback=self.set_info)
|
|
||||||
|
|
||||||
def set_info(self, info):
|
|
||||||
self.import_info = info
|
|
||||||
|
|
||||||
def import_info_text(self):
|
def import_info_text(self):
|
||||||
"""
|
"""
|
||||||
@@ -382,7 +378,7 @@ def format_maker():
|
|||||||
|
|
||||||
class GrampsImportFileDialog(ManagedWindow):
|
class GrampsImportFileDialog(ManagedWindow):
|
||||||
|
|
||||||
def __init__(self, dbstate, uistate, callback=None):
|
def __init__(self, dbstate, uistate):
|
||||||
"""
|
"""
|
||||||
A dialog to import a file into Gramps
|
A dialog to import a file into Gramps
|
||||||
"""
|
"""
|
||||||
@@ -430,8 +426,7 @@ class GrampsImportFileDialog(ManagedWindow):
|
|||||||
# the import_dialog.run() makes it modal, so any change to that
|
# the import_dialog.run() makes it modal, so any change to that
|
||||||
# line would require the ManagedWindow.__init__ to be changed also
|
# line would require the ManagedWindow.__init__ to be changed also
|
||||||
response = import_dialog.run()
|
response = import_dialog.run()
|
||||||
if response in (Gtk.ResponseType.CANCEL,
|
if response in (Gtk.ResponseType.CANCEL, Gtk.ResponseType.DELETE_EVENT):
|
||||||
Gtk.ResponseType.DELETE_EVENT):
|
|
||||||
break
|
break
|
||||||
elif response == Gtk.ResponseType.OK:
|
elif response == Gtk.ResponseType.OK:
|
||||||
filename = import_dialog.get_filename()
|
filename = import_dialog.get_filename()
|
||||||
@@ -455,8 +450,6 @@ class GrampsImportFileDialog(ManagedWindow):
|
|||||||
plugin.get_import_function(),
|
plugin.get_import_function(),
|
||||||
filename)
|
filename)
|
||||||
self.close()
|
self.close()
|
||||||
if callback is not None:
|
|
||||||
callback(self.import_info)
|
|
||||||
return
|
return
|
||||||
|
|
||||||
# Finally, we give up and declare this an unknown format
|
# Finally, we give up and declare this an unknown format
|
||||||
|
@@ -149,6 +149,4 @@ def importData(database, filename, user):
|
|||||||
except GedcomError as msg:
|
except GedcomError as msg:
|
||||||
user.notify_error(_('Error reading GEDCOM file'), str(msg))
|
user.notify_error(_('Error reading GEDCOM file'), str(msg))
|
||||||
return
|
return
|
||||||
## a "GEDCOM import report" happens in GedcomParser so this is not needed:
|
return ImportInfo({_("Results"): _("done")})
|
||||||
## return ImportInfo({_("Results"): _("done")})
|
|
||||||
return None
|
|
||||||
|
@@ -71,9 +71,7 @@ def importData(database, filename, user):
|
|||||||
except GrampsImportError as msg:
|
except GrampsImportError as msg:
|
||||||
user.notify_error(_("%s could not be opened\n") % filename, str(msg))
|
user.notify_error(_("%s could not be opened\n") % filename, str(msg))
|
||||||
return
|
return
|
||||||
## a "VCARD import report" happens in VCardParser so this is not needed:
|
return ImportInfo({_("Results"): _("done")})
|
||||||
## return ImportInfo({_("Results"): _("done")})
|
|
||||||
return None
|
|
||||||
|
|
||||||
|
|
||||||
def splitof_nameprefix(name):
|
def splitof_nameprefix(name):
|
||||||
|
Reference in New Issue
Block a user