preserve full path for photos after import
svn: r1497
This commit is contained in:
@ -988,13 +988,12 @@ class GrampsImportParser(GrampsParser):
|
||||
src = attrs["src"]
|
||||
if src:
|
||||
if src[0] != '/':
|
||||
self.object.setPath("%s/%s" % (self.base,src))
|
||||
self.object.setPath("%s/%s" % (self.db.getSavePath(),src))
|
||||
self.object.setLocal(1)
|
||||
else:
|
||||
self.object.setPath(src)
|
||||
self.object.setLocal(0)
|
||||
|
||||
|
||||
def append_value(orig,val):
|
||||
if orig:
|
||||
return "%s, %s" % (orig,val)
|
||||
|
Reference in New Issue
Block a user