* 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:
@@ -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())
|
||||
|
Reference in New Issue
Block a user