From 1460750b247c7a2918a237fe32cfc8523cd307b2 Mon Sep 17 00:00:00 2001 From: Gary Burton Date: Sat, 11 Jul 2009 15:35:36 +0000 Subject: [PATCH] Add missing source_predicate method and doc strings svn: r12787 --- src/gen/proxy/referenced.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/src/gen/proxy/referenced.py b/src/gen/proxy/referenced.py index 4dbf37f07..d7c968c11 100644 --- a/src/gen/proxy/referenced.py +++ b/src/gen/proxy/referenced.py @@ -166,18 +166,39 @@ class ReferencedProxyDb(ProxyDbBase): return self.db.get_note_from_gramps_id(val) def place_predicate(self, handle): + """ + Filter for places + """ return handle not in self.unreferenced_places def object_predicate(self, handle): + """ + Filter for media objects + """ return handle not in self.unreferenced_media_objects def event_predicate(self, handle): + """ + Filter for 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): + """ + Filter for repositories + """ return handle not in self.unreferenced_repositories def note_predicate(self, handle): + """ + Filter for notes + """ return handle not in self.unreferenced_notes def get_default_person(self):