From 9b1e068894984427a45201374957eb41f5de05d9 Mon Sep 17 00:00:00 2001 From: Marc Burns Date: Mon, 28 Feb 2011 13:18:01 -0500 Subject: [PATCH] Modified ceo/urwid/library.py to display message when book search yields no results. --- ceo/urwid/library.py | 4 ++++ debian/changelog | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/ceo/urwid/library.py b/ceo/urwid/library.py index 64d09c73b..40e369026 100644 --- a/ceo/urwid/library.py +++ b/ceo/urwid/library.py @@ -284,6 +284,10 @@ class SearchPage(urwid.WidgetWrap): for s in st: books.append(s.book) + if not books.count(): + widgets.append(urwid.Text("No results. Hit ESC to return to search page.")) + widgets.append(urwid.Divider()) + for b in books: widgets.append(urwid.AttrWrap(ButtonText(self.select, b, str(b)), None, 'selected')) diff --git a/debian/changelog b/debian/changelog index 886770632..d84833de4 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +ceo (0.5.9+nmu1) stable; urgency=low + + * Non-maintainer upload. + * Fix library book search page to display message when no books are found. + + -- Marc Burns Mon, 28 Feb 2011 13:00:24 -0500 + ceo (0.5.9) stable; urgency=low * Fix build for squeeze.