Export of gpkg saves paths in tarfile as path in database.

Import of gpkg exports media in home dir, sets base media path to that dir, so user can
easily change position with move in filemanager, and change of base media path
0001966: import of gpkg copies media files to hidden dir & not accessible


svn: r10366
This commit is contained in:
Benny Malengier
2008-03-21 22:28:28 +00:00
parent 799c6a6a33
commit fe6840666c
2 changed files with 52 additions and 21 deletions

View File

@@ -174,8 +174,9 @@ class PackageWriter:
for m_id in self.db.get_media_object_handles():
mobject = self.db.get_object_from_handle(m_id)
filename = str(Utils.media_path_full(self.db, mobject.get_path()))
archname = str(mobject.get_path())
if os.path.isfile(filename):
archive.add(filename)
archive.add(filename, archname)
# else:
# # File is lost => ask what to do
# if missmedia_action == 0: