Add default confirm answer

develop 3.1.5
parent ca2812a1e7
commit 0000621fba

@ -568,7 +568,7 @@ def get_Table(client, sid, pid, item):
def send_Confirm(client,sid,pid,item):
print
ask = ""
while not ask:
while not ask and not client.no_questions:
try:
ask = raw_input(item.message+ '(yes/no): ')
except KeyboardInterrupt:

@ -114,6 +114,7 @@ def call_method(client, args, unknown_args, wait_thread):
unknown_args = method_parser.fixBoolVariables(unknown_args)
args, unknown_args = method_parser.parse_known_args(unknown_args)
no_questions = args.no_questions
client.no_questions = no_questions
except SystemExit:
raise Exception(1)
for i in unknown_args:

Loading…
Cancel
Save