diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2007-01-16 17:01:42 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2007-01-16 17:01:42 +0000 |
commit | 4d0b6a85024d10a9b72baf7b8a1da5ada6ee0f5d (patch) | |
tree | b460f80d5555021c632552ab56ec13780078bf4b /src/lib/Client/Frame.py | |
parent | 36aa72ac90b0a9635fa7b349698d72635809fc00 (diff) | |
download | bcfg2-4d0b6a85024d10a9b72baf7b8a1da5ada6ee0f5d.tar.gz bcfg2-4d0b6a85024d10a9b72baf7b8a1da5ada6ee0f5d.tar.bz2 bcfg2-4d0b6a85024d10a9b72baf7b8a1da5ada6ee0f5d.zip |
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
Diffstat (limited to 'src/lib/Client/Frame.py')
-rw-r--r-- | src/lib/Client/Frame.py | 6 |
1 files changed, 5 insertions, 1 deletions
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 |