* src/GrampsBSDDB.py: add remove_place function

* src/DisplayModels.py: added row deletion and updating
functions
* src/EditPlace.py: Make a distinction between update and
new
* src/EditSource.py: Make a distinction between update and
new
* src/PeopleModel.py: remove debugging code
* src/PlaceView.py: better handling of updating and deleiting
* src/SourceView.py: better handling of updating and deleiting


svn: r3520
This commit is contained in:
Don Allingham
2004-08-30 03:50:33 +00:00
parent 8ce99f9853
commit 0e4693a675
8 changed files with 102 additions and 61 deletions

View File

@@ -371,7 +371,10 @@ class EditPlace:
self.update_lists()
trans = self.db.transaction_begin()
self.db.commit_place(self.place,trans)
if self.place.get_handle():
self.db.commit_place(self.place,trans)
else:
self.db.add_place(self.place,trans)
self.db.transaction_commit(trans,_("Edit Place (%s)") % self.place.get_title())
if self.callback:
@@ -578,4 +581,4 @@ class DeletePlaceQuery:
self.db.commit_event(event,trans)
self.db.transaction_commit(trans,_("Delete Place (%s)") % self.place.get_title())
self.update(None)
self.update(self.place.get_handle())