2008-02-15 Benny Malengier <benny.malengier@gramps-project.org>
* src/DataViews/RelationView.py * src/DataViews/PedigreeView.py * src/ReportBase/_ReportUtils.py * src/Editors/_EditPerson.py * src/Editors/_EditMediaRef.py * src/DisplayTabs/_GalleryTab.py: also correct wrong popup menu * src/plugins/Summary.py * src/plugins/WriteCD.py * src/plugins/IndivComplete.py * src/plugins/NarrativeWeb.py * src/plugins/WritePkg.py * src/plugins/GVFamilyLines.py * src/plugins/DefaultGramplets.py * src/plugins/SimpleBookTitle.py * src/plugins/Check.py * src/plugins/GVRelGraph.py * src/plugins/FamilyLines.py * src/Selectors/_SelectObject.py * src/GrampsDbUtils/_WriteGedcom.py #1787, #1208: use relative path correctly svn: r10048
This commit is contained in:
@@ -74,6 +74,7 @@ except:
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
from GrampsDbUtils import XmlWriter
|
||||
from Utils import media_path_full
|
||||
from QuestionDialog import ErrorDialog, MissingMediaDialog
|
||||
from PluginUtils import register_export
|
||||
|
||||
@@ -125,7 +126,7 @@ class PackageWriter:
|
||||
|
||||
for obj_id in self.db.get_media_object_handles():
|
||||
obj = self.db.get_object_from_handle(obj_id)
|
||||
oldfile = obj.get_path()
|
||||
oldfile = media_path_full(self.db, obj.get_path())
|
||||
root = os.path.basename(oldfile)
|
||||
if os.path.isfile(oldfile):
|
||||
self.copy_file(oldfile, 'burn:///%s/%s' % (base, root))
|
||||
@@ -246,7 +247,7 @@ class PackageWriter:
|
||||
|
||||
for obj_id in self.db.get_media_object_handles():
|
||||
obj = self.db.get_object_from_handle(obj_id)
|
||||
oldfile = obj.get_path()
|
||||
oldfile = media_path_full(self.db, obj.get_path())
|
||||
root = os.path.basename(oldfile)
|
||||
if os.path.isfile(oldfile):
|
||||
self.copy_file(oldfile, 'burn:///%s/%s' % (base, root))
|
||||
|
||||
Reference in New Issue
Block a user