event ref commit
svn: r6090
This commit is contained in:
parent
f540d7a4da
commit
913cdc4095
@ -1,4 +1,5 @@
|
|||||||
2006-03-05 Don Allingham <don@gramps-project.org>
|
2006-03-05 Don Allingham <don@gramps-project.org>
|
||||||
|
* src/Editors/_EditEventRef.py: add vs. commit handling
|
||||||
* src/Editors/_EditPerson.py: handle None as person
|
* src/Editors/_EditPerson.py: handle None as person
|
||||||
* src/TipOfDay.py: Fix the image location
|
* src/TipOfDay.py: Fix the image location
|
||||||
* src/Editors/_EditPerson.py: fix focus_out_event
|
* src/Editors/_EditPerson.py: fix focus_out_event
|
||||||
|
@ -202,14 +202,15 @@ class EditEventRef(EditReference):
|
|||||||
self.source.set_place_handle(handle)
|
self.source.set_place_handle(handle)
|
||||||
|
|
||||||
trans = self.db.transaction_begin()
|
trans = self.db.transaction_begin()
|
||||||
self.db.commit_event(self.source,trans)
|
|
||||||
if self.source.handle:
|
if self.source.handle:
|
||||||
if need_new:
|
if need_new:
|
||||||
self.db.add_place(place_obj,trans)
|
self.db.add_place(place_obj,trans)
|
||||||
|
self.db.commit_event(self.source,trans)
|
||||||
self.db.transaction_commit(trans,_("Modify Event"))
|
self.db.transaction_commit(trans,_("Modify Event"))
|
||||||
else:
|
else:
|
||||||
if need_new:
|
if need_new:
|
||||||
self.db.add_place(place_obj,trans)
|
self.db.add_place(place_obj,trans)
|
||||||
|
self.db.add_event(self.source,trans)
|
||||||
self.db.transaction_commit(trans,_("Add Event"))
|
self.db.transaction_commit(trans,_("Add Event"))
|
||||||
self.source_ref.ref = self.source.handle
|
self.source_ref.ref = self.source.handle
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user