Modified ceo/urwid/library.py to display message when book search yields no results.

This commit is contained in:
Marc Burns 2011-02-28 13:18:01 -05:00
parent c28889b7f9
commit 9b1e068894
2 changed files with 11 additions and 0 deletions

View File

@ -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'))

7
debian/changelog vendored
View File

@ -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 <m4burns@csclub.uwaterloo.ca> Mon, 28 Feb 2011 13:00:24 -0500
ceo (0.5.9) stable; urgency=low
* Fix build for squeeze.