Add missing source_predicate method and doc strings

svn: r12787
This commit is contained in:
Gary Burton 2009-07-11 15:35:36 +00:00
parent 215aeb4667
commit 1460750b24

View File

@ -166,18 +166,39 @@ class ReferencedProxyDb(ProxyDbBase):
return self.db.get_note_from_gramps_id(val) return self.db.get_note_from_gramps_id(val)
def place_predicate(self, handle): def place_predicate(self, handle):
"""
Filter for places
"""
return handle not in self.unreferenced_places return handle not in self.unreferenced_places
def object_predicate(self, handle): def object_predicate(self, handle):
"""
Filter for media objects
"""
return handle not in self.unreferenced_media_objects return handle not in self.unreferenced_media_objects
def event_predicate(self, handle): def event_predicate(self, handle):
"""
Filter for events
"""
return handle not in self.unreferenced_events return handle not in self.unreferenced_events
def source_predicate(self, handle):
"""
Filter for sources
"""
return handle not in self.unreferenced_sources
def repository_predicate(self, handle): def repository_predicate(self, handle):
"""
Filter for repositories
"""
return handle not in self.unreferenced_repositories return handle not in self.unreferenced_repositories
def note_predicate(self, handle): def note_predicate(self, handle):
"""
Filter for notes
"""
return handle not in self.unreferenced_notes return handle not in self.unreferenced_notes
def get_default_person(self): def get_default_person(self):