From 3c612103283bea0830cd5db349bd116e059ebfce Mon Sep 17 00:00:00 2001 From: Marc Burns Date: Fri, 4 Mar 2011 16:54:48 -0500 Subject: [PATCH] Fix library check in and search bug. --- ceo/urwid/library.py | 2 +- debian/changelog | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ceo/urwid/library.py b/ceo/urwid/library.py index 40e3690..2aca3aa 100644 --- a/ceo/urwid/library.py +++ b/ceo/urwid/library.py @@ -284,7 +284,7 @@ class SearchPage(urwid.WidgetWrap): for s in st: books.append(s.book) - if not books.count(): + if ((type(books) != type([])) and books.count() == 0) or books == []: widgets.append(urwid.Text("No results. Hit ESC to return to search page.")) widgets.append(urwid.Divider()) diff --git a/debian/changelog b/debian/changelog index fa059d0..5ceeca5 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +ceo (0.5.11) stable; urgency=low + + * Fix library check in and search bug introduced in 0.5.9+nmu1. + + -- Marc Burns Fri, 04 Mar 2011 16:52:32 -0500 + ceo (0.5.10) stable; urgency=low * Fix squeeze build warnings