Author: gnichols
Date: 2011-07-07 19:01:40 +0000 (Thu, 07 Jul 2011)
New Revision: 989
Modified:
trunk/v7/commandLineUI.py
Log:
684075 - the hardware <make/> tag in results.xml is never set.
Modified: trunk/v7/commandLineUI.py
===================================================================
--- trunk/v7/commandLineUI.py 2011-07-07 19:00:39 UTC (rev 988)
+++ trunk/v7/commandLineUI.py 2011-07-07 19:01:40 UTC (rev 989)
@@ -14,6 +14,7 @@
# Author: Greg Nichols
#
import string, os, sys, copy, re
+import readline
from tags import Constants
@@ -66,6 +67,16 @@
def promptContinue(self, message):
return self.promptConfirm(question=("%s - continue? " % message))
+
+ def promptEdit(self, label, value):
+ if not value:
+ value = ""
+ readline.set_startup_hook(lambda: readline.insert_text(value))
+ try:
+ return raw_input(label)
+ finally:
+ readline.set_startup_hook()
+
Show replies by date