* src/PageView.py (button_press): Catch problem with no loaded database

* src/PersonView.py (button_press): Catch problem with no loaded database
* src/GrampsDbBase.py (_get_from_handle): Catch problem with no loaded database
* src/MapView.py: Updates


svn: r5197
This commit is contained in:
Martin Hawlisch
2005-09-16 13:18:52 +00:00
parent 996b7be086
commit 0307d94b86
4 changed files with 103 additions and 47 deletions

View File

@ -492,6 +492,8 @@ class GrampsDbBase(GrampsDBCallback.GrampsDBCallback):
return index
def _get_from_handle(self, handle, class_type, data_map):
if not data_map:
return
data = data_map.get(str(handle))
if data:
newobj = class_type()
@ -1199,7 +1201,6 @@ class GrampsDbBase(GrampsDBCallback.GrampsDBCallback):
instances in the database"""
return list(self.family_event_names)
def get_media_attribute_types(self):
"""returns a list of all Attribute types assocated with Media
instances in the database"""