Added selected_handles() to navigation views for compatibility with listviews

svn: r15765
This commit is contained in:
Doug Blank 2010-08-18 12:37:17 +00:00
parent f3c5254bbe
commit c9f82192b1

View File

@ -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
####################################################################