From c9f82192b177d293fa19f5f4e37a8dd6639f12e3 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Wed, 18 Aug 2010 12:37:17 +0000 Subject: [PATCH] Added selected_handles() to navigation views for compatibility with listviews svn: r15765 --- src/gui/views/navigationview.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/gui/views/navigationview.py b/src/gui/views/navigationview.py index d4cff2bab..c099aa6a7 100644 --- a/src/gui/views/navigationview.py +++ b/src/gui/views/navigationview.py @@ -221,6 +221,16 @@ class NavigationView(PageView): """ raise NotImplementedError + def selected_handles(self): + """ + Return the active person's handle in a list. Used for + compatibility with those list views that can return multiply + selected items. + """ + active_handle = self.uistate.get_active(self.navigation_type(), + self.navigation_group()) + return [active_handle] if active_handle else [] + #################################################################### # BOOKMARKS ####################################################################