From 3536e8e58bf0fd15be6436b75e6b3475321a1428 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Sun, 11 Dec 2011 03:57:38 +0000 Subject: [PATCH] Added missing get_XXX_cursor methods to proxybase svn: r18569 --- src/gen/proxy/proxybase.py | 40 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/src/gen/proxy/proxybase.py b/src/gen/proxy/proxybase.py index fa6320824..e60b7a609 100644 --- a/src/gen/proxy/proxybase.py +++ b/src/gen/proxy/proxybase.py @@ -104,6 +104,46 @@ class ProxyDbBase(DbReadBase): include_tag = \ None + def get_person_cursor(self): + for handle in self.get_person_handles(): + yield handle, self.basedb.person_map[handle] + + def get_family_cursor(self): + for handle in self.get_family_handles(): + yield handle, self.basedb.family_map[handle] + + def get_event_cursor(self): + for handle in self.get_event_handles(): + yield handle, self.basedb.event_map[handle] + + def get_source_cursor(self): + for handle in self.get_source_handles(): + yield handle, self.basedb.source_map[handle] + + def get_citation_cursor(self): + for handle in self.get_citation_handles(): + yield handle, self.basedb.citation_map[handle] + + def get_place_cursor(self): + for handle in self.get_place_handles(): + yield handle, self.basedb.place_map[handle] + + def get_media_cursor(self): + for handle in self.get_media_object_handles(): + yield handle, self.basedb.media_map[handle] + + def get_repository_cursor(self): + for handle in self.get_repository_handles(): + yield handle, self.basedb.repository_map[handle] + + def get_note_cursor(self): + for handle in self.get_note_handles(): + yield handle, self.basedb.note_map[handle] + + def get_tag_cursor(self): + for handle in self.get_tag_handles(): + yield handle, self.basedb.tag_map[handle] + def get_person_handles(self, sort_handles=False): """ Return a list of database handles, one handle for each Person in