* 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 * src/EditPerson.py: Change complete flag into marker combo * src/GrampsDbBase.py: Add map for custom marker values * src/PeopleModel.py: Add support for colored markers * src/PersonView.py: Add support for colored markers * src/RelLib.py: Change complete flag into marker combo * src/Utils.py: Add marker types * src/edit_person.glade: Change complete flag into marker combo svn: r5198
This commit is contained in:
@ -179,6 +179,7 @@ class GrampsDbBase(GrampsDBCallback.GrampsDBCallback):
|
||||
self.individual_event_names = sets.Set()
|
||||
self.individual_attributes = sets.Set()
|
||||
self.family_attributes = sets.Set()
|
||||
self.marker_names = sets.Set()
|
||||
|
||||
self.set_person_id_prefix(GrampsKeys.get_person_id_prefix())
|
||||
self.set_object_id_prefix(GrampsKeys.get_object_id_prefix())
|
||||
@ -342,6 +343,8 @@ class GrampsDbBase(GrampsDBCallback.GrampsDBCallback):
|
||||
for attr in person.attribute_list:
|
||||
self.individual_attributes.add(attr.type)
|
||||
|
||||
self.marker_names.add(person.marker[1])
|
||||
|
||||
def commit_media_object(self,obj,transaction,change_time=None):
|
||||
"""
|
||||
Commits the specified MediaObject to the database, storing the changes
|
||||
@ -1201,6 +1204,10 @@ class GrampsDbBase(GrampsDBCallback.GrampsDBCallback):
|
||||
instances in the database"""
|
||||
return list(self.family_event_names)
|
||||
|
||||
def get_marker_types():
|
||||
"""return a list of all marker types available in the database"""
|
||||
return list(self.marker_names)
|
||||
|
||||
def get_media_attribute_types(self):
|
||||
"""returns a list of all Attribute types assocated with Media
|
||||
instances in the database"""
|
||||
|
Reference in New Issue
Block a user