* src/ArgHandler.py: Make sure all databases are closed before

creating a new one.
* src/DisplayModels.py: Calculate new nodes properly after a
node has be deleted. The node hasn't been removed from the database
yet.
* src/EditPerson.py: Add check for unknown gender before closing
* src/EditSource.py: Remove unnecessary updates
* src/GrampsBSDDB.py: check for open in close()
* src/GrampsDbBase.py: spelling error
* src/MediaView.py: connect to database-changed
* src/PedView.py: remove unused update function
* src/PeopleView.py: connect to database-changed
* src/PlaceView.py: connect to database-changed
* src/SourceView.py: connect to database-changed, remove unnecessary
callback
* src/gramps_main.py: add database-changed signal


svn: r4288
This commit is contained in:
Don Allingham
2005-04-04 01:11:50 +00:00
parent 9c3bf10613
commit 0215ae6929
13 changed files with 76 additions and 48 deletions

View File

@ -375,11 +375,10 @@ class EditSource:
class DelSrcQuery:
def __init__(self,source,db,the_lists,update):
def __init__(self,source,db,the_lists):
self.source = source
self.db = db
self.the_lists = the_lists
self.update = update
def query_response(self):
trans = self.db.transaction_begin()
@ -418,7 +417,7 @@ class DelSrcQuery:
media = self.db.get_object_from_handle(handle)
media.remove_source_references(src_handle_list)
self.db.commit_media_object(media,trans)
self.db.remove_source(self.source.get_handle(),trans)
self.db.transaction_commit(trans,_("Delete Source (%s)") % self.source.get_title())
self.update(self.source.get_handle())
self.db.transaction_commit(
trans,_("Delete Source (%s)") % self.source.get_title())