* src/gen/db/base.py: added missing key for reference_key in mapbase and

_SIGBASE. Was preventing deleted notes being undone. Bug #1507.

2007-12-31 Gary Burton <gary.burton@zen.co.uk>


svn: r9664
This commit is contained in:
Gary Burton 2007-12-31 21:57:54 +00:00
parent 86786d2a1d
commit cfbcdce095
2 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2007-12-31 Gary Burton <gary.burton@zen.co.uk>
* src/gen/db/base.py: added missing key for reference_key in mapbase and
_SIGBASE. Was preventing deleted notes being undone. Bug #1507.
2007-12-31 Gary Burton <gary.burton@zen.co.uk>
* src/DataViews/RelationView.py:
* src/Editors/_EditFamily.py: Add a signal handler for changes to events.

View File

@ -90,7 +90,7 @@ KEY_TO_CLASS_MAP = {PERSON_KEY: Person.__name__,
NOTE_KEY: Note.__name__}
_SIGBASE = ('person', 'family', 'source', 'event',
'media', 'place', 'repository','note')
'media', 'place', 'repository', 'reference', 'note')
class GrampsDbBookmarks:
def __init__(self, default=[]):
@ -1637,7 +1637,7 @@ class GrampsDbBase(GrampsDBCallback):
mapbase = (self.person_map, self.family_map, self.source_map,
self.event_map, self.media_map, self.place_map,
self.repository_map, self.note_map)
self.repository_map, {}, self.note_map)
self.undoindex -= 1
subitems = transaction.get_recnos()
@ -1681,7 +1681,7 @@ class GrampsDbBase(GrampsDBCallback):
transaction = self.translist[self.undoindex]
mapbase = (self.person_map, self.family_map, self.source_map,
self.event_map, self.media_map, self.place_map,
self.repository_map, self.note_map)
self.repository_map, {}, self.note_map)
subitems = transaction.get_recnos()
for record_id in subitems: