From 4d0b6a85024d10a9b72baf7b8a1da5ada6ee0f5d Mon Sep 17 00:00:00 2001 From: Narayan Desai Date: Tue, 16 Jan 2007 17:01:42 +0000 Subject: Implement more verbose questions for interactive mode (for Packages) (Halfway-resolves Ticket #279) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2684 ce84e21b-d406-0410-9b95-82705330c041 --- src/lib/Client/Frame.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/lib/Client/Frame.py') diff --git a/src/lib/Client/Frame.py b/src/lib/Client/Frame.py index 222b258f8..91e45d4b8 100644 --- a/src/lib/Client/Frame.py +++ b/src/lib/Client/Frame.py @@ -16,8 +16,12 @@ def promptFilter(prompt, entries): ret = [] entries.sort(cmpent) for entry in entries[:]: + if 'qtext' in entry.attrib: + iprompt = entry.get('qtext') + else: + iprompt = prompt % (entry.tag, entry.get('name')) try: - if raw_input(prompt % (entry.tag, entry.get('name'))) in ['y', 'Y']: + if raw_input(iprompt) in ['y', 'Y']: ret.append(entry) except: continue -- cgit v1.2.3-1-g7c22