From 9d3aa3579046afd3bd93bce7592b3a86bb3126e1 Mon Sep 17 00:00:00 2001 From: David Bartley Date: Fri, 23 Jan 2009 00:47:36 -0500 Subject: [PATCH] Add username autocomplete to library --- ceo/urwid/library.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ceo/urwid/library.py b/ceo/urwid/library.py index 9761aaf..f6252eb 100644 --- a/ceo/urwid/library.py +++ b/ceo/urwid/library.py @@ -112,7 +112,7 @@ class CheckoutPage(WizardPanel): """ self.state["user"] = "ERROR" self.state["task"] = "sign_out" - self.user = SingleEdit("Username: ") + self.user = LdapWordEdit(csclub_uri, csclub_base, 'uid', "Username: ") self.widgets = [ urwid.Text("Book Checkout"), @@ -138,7 +138,7 @@ class ConfirmPage(WizardPanel): task -> used to deterimine the action """ - self.user = urwid.Text("Username: ") + self.user = LdapWordEdit(csclub_uri, csclub_base, 'uid', "Username: ") self.book = urwid.Text("Book: ") title = "" @@ -232,7 +232,7 @@ class CheckinPage(WizardPanel): self.state["book"] = None self.state["user"] = "ERROR" self.state["task"] = "sign_in" - self.user = SingleEdit("Username: ") + self.user = LdapWordEdit(csclub_uri, csclub_base, 'uid', "Username: ") self.widgets = [ urwid.Text("Book Checkin"),