diff --git a/console/application/cl_client.py b/console/application/cl_client.py index bff56c5..dddf252 100644 --- a/console/application/cl_client.py +++ b/console/application/cl_client.py @@ -245,6 +245,7 @@ def https_server(client, args, unknown_args, url, clVarsCore, wait_thread): client.frame_period = 2 method_result = call_method(client, args, wait_thread) if method_result: + client.no_progress = args.no_progress try: analysis(client, client.sid, method_result) except urllib2.URLError, e: diff --git a/console/application/function.py b/console/application/function.py index 75cdfb3..53e6069 100644 --- a/console/application/function.py +++ b/console/application/function.py @@ -345,7 +345,6 @@ def callView(client, item, sid): pass #################MESSAGE#################################### - def analysis(client, sid, s): """ analysis of the bounced message method """ messages = s[0] @@ -374,7 +373,8 @@ def get_message(client, item, sid, pid): # print item.message return 1 if case('progress'): - get_Progress(client, sid, pid, item.id) + if not client.no_progress: + get_Progress(client, sid, pid, item.id) return 1 if case('error'): show_error(item) diff --git a/console/application/methods_func.py b/console/application/methods_func.py index 0fbe1d5..f18bd2e 100644 --- a/console/application/methods_func.py +++ b/console/application/methods_func.py @@ -79,6 +79,9 @@ def parse(): parser.add_argument( '--stop-consoled', action='store_true', default=False, dest='stop_consoled', help=_("stop cl-consoled")) + parser.add_argument( + '--no-progress', action='store_true', default=False, + dest = 'no_progress', help=_('do not display progress bar')) return parser def get_view(client, method, sid, view_params):