From 3c609102be70f52c51bf65e3c3888ca83bda30bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A1=D0=BF=D0=B8=D1=80=D0=B8=D0=B4=D0=BE=D0=BD=D0=BE?= =?UTF-8?q?=D0=B2=20=D0=94=D0=B5=D0=BD=D0=B8=D1=81?= Date: Wed, 27 Jun 2012 11:45:11 +0400 Subject: [PATCH] fix no_questions key --- console/application/methods_func.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/console/application/methods_func.py b/console/application/methods_func.py index 68c7ea8..8c04edd 100644 --- a/console/application/methods_func.py +++ b/console/application/methods_func.py @@ -97,6 +97,7 @@ def get_view(client, method, sid, view_params): def call_method(client, args, wait_thread): method = args.method + no_questions = args.no_questions view_params = get_view_params(client, method + '_view', step = None, \ expert = True) @@ -115,7 +116,6 @@ def call_method(client, args, wait_thread): sys.stdout.flush() _print (_('Unknown parameter'), i) raise Exception(1) - param_object, steps = collect_object(client, param_object, view, args, wait_thread) @@ -144,7 +144,6 @@ def call_method(client, args, wait_thread): red = '\033[31m * \033[0m' _print ('\r' + red + params_text + error.message) return None - view_params = get_view_params(client, method + '_view', step = None, \ expert = True, brief = True) view = get_view(client, method, client.sid, view_params) @@ -152,7 +151,7 @@ def call_method(client, args, wait_thread): sys.stdout.write('\r') sys.stdout.flush() print_brief(view, steps.label) - if not args.without_brief: + if not no_questions: while True: try: ask = raw_input('\n' + _('Run process? (yes/no): '))