Fixed writing a gramps package
svn: r472
This commit is contained in:
parent
0746c5e01b
commit
51c9da428e
@ -82,36 +82,40 @@ def exportData(database, filename):
|
||||
|
||||
for f in database.getPersonMap().values():
|
||||
for p in f.getPhotoList():
|
||||
base = os.path.basename(p.getPath())
|
||||
object = p.getReference()
|
||||
base = os.path.basename(object.getPath())
|
||||
try:
|
||||
g = open(p.getPath(),"rb")
|
||||
g = open(object.getPath(),"rb")
|
||||
t.add_file(base,mtime,g)
|
||||
g.close()
|
||||
except:
|
||||
pass
|
||||
for f in database.getFamilyMap().values():
|
||||
for p in f.getPhotoList():
|
||||
base = os.path.basename(p.getPath())
|
||||
object = p.getReference()
|
||||
base = os.path.basename(object.getPath())
|
||||
try:
|
||||
g = open(p.getPath(),"rb")
|
||||
g = open(object.getPath(),"rb")
|
||||
t.add_file(base,mtime,g)
|
||||
g.close()
|
||||
except:
|
||||
pass
|
||||
for f in database.getSourceMap().values():
|
||||
for p in f.getPhotoList():
|
||||
base = os.path.basename(p.getPath())
|
||||
object = p.getReference()
|
||||
base = os.path.basename(object.getPath())
|
||||
try:
|
||||
g = open(p.getPath(),"rb")
|
||||
g = open(object.getPath(),"rb")
|
||||
t.add_file(base,mtime,g)
|
||||
g.close()
|
||||
except:
|
||||
pass
|
||||
for f in database.getPlaceMap().values():
|
||||
for p in f.getPhotoList():
|
||||
base = os.path.basename(p.getPath())
|
||||
object = p.getReference()
|
||||
base = os.path.basename(object.getPath())
|
||||
try:
|
||||
g = open(p.getPath(),"rb")
|
||||
g = open(object.getPath(),"rb")
|
||||
t.add_file(base,mtime,g)
|
||||
g.close()
|
||||
except:
|
||||
|
Loading…
Reference in New Issue
Block a user