Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 584687 Details for
Bug 818184
input check is needed for hardware 'category' field
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
commandLineUI patch requiring answer to be one of the options
commandLineUI.patch (text/plain), 984 bytes, created by
Greg Nichols
on 2012-05-15 15:08:58 UTC
(
hide
)
Description:
commandLineUI patch requiring answer to be one of the options
Filename:
MIME Type:
Creator:
Greg Nichols
Created:
2012-05-15 15:08:58 UTC
Size:
984 bytes
patch
obsolete
>Index: commandLineUI.py >=================================================================== >--- commandLineUI.py (revision 1218) >+++ commandLineUI.py (working copy) >@@ -85,11 +85,16 @@ > label += " (" > label += "|".join(answers) > label += ") " >- readline.set_startup_hook(lambda: readline.insert_text(value)) >- try: >- return raw_input(label) >- finally: >- readline.set_startup_hook() >+ while True: >+ readline.set_startup_hook(lambda: readline.insert_text(value)) >+ try: >+ answer = raw_input(label) >+ if not answers or answer in answers: >+ return answer >+ # otherwise >+ print "Please enter one of the following: %s" % " | ".join(answers) >+ finally: >+ readline.set_startup_hook() > > def promptPassword(self, message): > return getpass.getpass(message)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 818184
: 584687