Move the contents of "_GrampsBSDDB.py" into "ReadGrdb.py" because that is the only place it is used. Then, rename "ReadGrdb.py" to "plugins/ImportGrdb.py" for consistency. Also clean up misc import related code.
svn: r11173
This commit is contained in:
@@ -119,7 +119,6 @@ class DbLoader:
|
||||
|
||||
# Always add automatic (match all files) filter
|
||||
add_all_files_filter(choose_db_dialog) # *
|
||||
#add_grdb_filter(choose_db_dialog) # .grdb no longer native!
|
||||
add_xml_filter(choose_db_dialog) # .gramps
|
||||
add_gedcom_filter(choose_db_dialog) # .ged
|
||||
|
||||
@@ -368,15 +367,6 @@ def add_gramps_files_filter(chooser):
|
||||
mime_filter.add_mime_type(fmt)
|
||||
chooser.add_filter(mime_filter)
|
||||
|
||||
def add_grdb_filter(chooser):
|
||||
"""
|
||||
Add a GRDB filter to the file chooser dialog.
|
||||
"""
|
||||
mime_filter = gtk.FileFilter()
|
||||
mime_filter.set_name(_('GRAMPS 2.x databases'))
|
||||
mime_filter.add_mime_type(const.APP_GRAMPS)
|
||||
chooser.add_filter(mime_filter)
|
||||
|
||||
def add_xml_filter(chooser):
|
||||
"""
|
||||
Add a GRAMPS XML filter to the file chooser dialog.
|
||||
|
Reference in New Issue
Block a user