add key --no-progress

develop
Спиридонов Денис 12 years ago
parent 7bffdc4a7c
commit e29cf06648

@ -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:

@ -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)

@ -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):

Loading…
Cancel
Save