2007-01-26 Don Allingham <don@gramps-project.org>

* src/GrampsDb/_WriteGedcom.py: make unicode the default for export
	* src/GrampsDb/gedcompexport.glade: remove unused dialog
	* src/plugins/WritePkg.py: don't attempt to delete missing media objects.



svn: r7993
This commit is contained in:
Don Allingham
2007-01-27 05:30:15 +00:00
parent 176c51d3ca
commit db0d291b74
4 changed files with 52 additions and 252 deletions

View File

@@ -162,26 +162,26 @@ class PackageWriter:
filename = mobject.get_path()
if os.path.isfile(filename):
archive.add(filename)
else:
# File is lost => ask what to do
if missmedia_action == 0:
mmd = MissingMediaDialog(
_("Media object could not be found"),
_("%(file_name)s is referenced in the database, "
"but no longer exists. The file may have been "
"deleted or moved to a different location. "
"You may choose to either remove the reference "
"from the database, keep the reference to the "
"missing file, or select a new file."
) % { 'file_name' : filename },
remove_clicked, leave_clicked, select_clicked)
missmedia_action = mmd.default_action
elif missmedia_action == 1:
remove_clicked()
elif missmedia_action == 2:
leave_clicked()
elif missmedia_action == 3:
select_clicked()
# else:
# # File is lost => ask what to do
# if missmedia_action == 0:
# mmd = MissingMediaDialog(
# _("Media object could not be found"),
# _("%(file_name)s is referenced in the database, "
# "but no longer exists. The file may have been "
# "deleted or moved to a different location. "
# "You may choose to either remove the reference "
# "from the database, keep the reference to the "
# "missing file, or select a new file."
# ) % { 'file_name' : filename },
# remove_clicked, leave_clicked, select_clicked)
# missmedia_action = mmd.default_action
# elif missmedia_action == 1:
# remove_clicked()
# elif missmedia_action == 2:
# leave_clicked()
# elif missmedia_action == 3:
# select_clicked()
# Write XML now
g = StringIO()