From 0a2c8f684f09ccefc222007d096abe39a74851d9 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Wed, 17 May 2006 20:21:16 +0000 Subject: [PATCH] * src/Editors/_EditEventRef.py: new SelectPlace interface, remove old code svn: r6696 --- ChangeLog | 3 ++- src/Editors/_EditEventRef.py | 13 ------------- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/ChangeLog b/ChangeLog index 80a903f01..bb720d304 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,7 @@ 2006-05-17 Don Allingham * src/Editors/_EditPlace.py: new SelectPlace interface - * src/Editors/_EditEventRef.py: new SelectPlace interface + * src/Editors/_EditEventRef.py: new SelectPlace interface, remove + old code * src/Editors/_EditEvent.py: new SelectPlace interface * src/GrampsWidgets.py: new Place editor interface diff --git a/src/Editors/_EditEventRef.py b/src/Editors/_EditEventRef.py index ee4eca875..cb1d5632c 100644 --- a/src/Editors/_EditEventRef.py +++ b/src/Editors/_EditEventRef.py @@ -195,24 +195,11 @@ class EditEventRef(EditReference): def ok_clicked(self,obj): - (need_new, handle) = self.place_field.get_place_info() - if need_new: - place_obj = RelLib.Place() - place_obj.set_handle(Utils.create_id()) - place_obj.set_title(handle) - self.source.set_place_handle(place_obj.get_handle()) - else: - self.source.set_place_handle(handle) - trans = self.db.transaction_begin() if self.source.handle: - if need_new: - self.db.add_place(place_obj,trans) self.commit_event(self.source,trans) self.db.transaction_commit(trans,_("Modify Event")) else: - if need_new: - self.db.add_place(place_obj,trans) self.add_event(self.source,trans) self.db.transaction_commit(trans,_("Add Event")) self.source_ref.ref = self.source.handle