6624: import an exported XML crashes gramps 4.0 - Actually a logic bug python 2 does not crash on.
svn: r22122
This commit is contained in:
parent
192fa328c2
commit
8a2ad56f61
@ -2939,10 +2939,13 @@ class GrampsParser(UpdateCallback):
|
|||||||
obj.add_tag(tag_handle)
|
obj.add_tag(tag_handle)
|
||||||
|
|
||||||
def fix_not_instantiated(self):
|
def fix_not_instantiated(self):
|
||||||
uninstantiated = [(orig_handle, target) for orig_handle in
|
uninstantiated = []
|
||||||
self.import_handles.keys() if
|
for orig_handle in self.import_handles.keys():
|
||||||
[target for target in self.import_handles[orig_handle].keys() if
|
tglist = [target for target in self.import_handles[orig_handle].keys() if
|
||||||
not self.import_handles[orig_handle][target][INSTANTIATED]]]
|
not self.import_handles[orig_handle][target][INSTANTIATED]]
|
||||||
|
for target in tglist:
|
||||||
|
uninstantiated += [(orig_handle, target)]
|
||||||
|
|
||||||
if uninstantiated:
|
if uninstantiated:
|
||||||
expl_note = Utils.create_explanation_note(self.db)
|
expl_note = Utils.create_explanation_note(self.db)
|
||||||
self.db.commit_note(expl_note, self.trans, time.time())
|
self.db.commit_note(expl_note, self.trans, time.time())
|
||||||
|
Loading…
Reference in New Issue
Block a user